Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

Testing

<html>
<head>
<title>Online PHP Script Execution</title>
</head>
<body>
<?php 
$jobs = array('1', '2', '3', '4', '5', '6', '7', '8', '9', '10');
$feed = array('F1', 'F2', 'F3', 'F4');

$i=1;

$j=1;

foreach($jobs as $job) {
  echo $job.'----';
  if($i % 2 == 0 ) {
      echo $feed[$j].'----';
      $j++;
  }
  $i++;
}

?>
</body>
</html>

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.