<!DOCTYPE html>
<html lang="en">
<head>
<title>CURL Posting Data</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
</head>
<body>
</body>
</html>
<?php
$cars = array('SWIFT','ODI','MARUTI SUZUKI', 'BOLERO');
foreach ($cars as $value){
echo $value. "<br>";
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>CURL Posting Data</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
<div class="text-center">
<h1>PHP For Loop</h1>
</div>
<br>
<div class="well">
<?php
for ($xyz=1; $xyz<=5; $xyz++){
echo "The number is ". $xyz . "<br>";
}
?>
</div>
<div class="text-center">
<h1>PHP Foreach Loop</h1>
</div>
<br>
<div class="well">
<?php
$cars = array('SWIFT','ODI','MARUTI SUZUKI', 'BOLERO');
foreach ($cars as $value){
echo $value. "<br>";
}
?>
</div>
</div>
</body>
</html>