( Int * float = float )
Ex :
php$a = 5;
$b = 12.7;
$c = $a+$b;
echo $c;
?>
-----------------------------------------------------------------------
PHP - Type Juggling &Type Casting
It is used to convert one data type to another data type Except Array and Object .php
$a = 10;
$b = (string)$a;
var_dump($b);
echo '
';
var_dump($a);
?>
Read php Interview Questions and Answers by experts at www.tipsoninterview.com
For Php Training in Hyderabad call 9394799566
No comments:
Post a Comment