Core php Programming Examples
core php programming examples to swap two numbers
<?php$a=20;$b=10;echo "a="." ".$a." "."b="." ".$b;$temp=$a;$a=$b;$b=$temp;echo "<br>"; echo "after swapping A is"." ".$a." "."and b is"." ".$b ;?>
core php programming examples to Fahrenheit temperature into Celsius
<?php$f=55 ;$c=($f-32)*5/9;echo $c;?>
Program to print even numbers between 1 and 20 in php
<?phpfor($i=1;$i<=20;$i++){if($i%2!=0){echo $i." ";}}
Program in php...