PHP Programing language

Write a Program to print a series
Previous Home Next

<html>
<head>
<title>print the series</title>
</head>
<body>
<?php
$a=1;
$i;
for($i=1;$i<10;$i++)
{
$a=$i+$i;
{
echo("$a");
}
}
?>
</body>
</html>
output:
24681012141618
Previous Home Next