Mega Code Archive

 
Categories / Php / Operator
 

An example of PHPs automatic type conversion is the addition operator +

<? $foo = "0";  $foo++;  $foo += 1;  $foo = $foo + 1.3;  $foo = 5 + "10 L";  $foo = 5 + "10 S";  ?>