Type conversion Approach 3 : Data Type Convert : Language Basics PHP Source Code


PHP Source Code » Language Basics » Data Type Convert »

 

Type conversion Approach 3




<?
$dog_count = "101 Dalmatians"
settype($dog_count, "double");
echo ($dog_count);

settype($dog_count, "string");
echo ($dog_count);

settype($dog_count, "int");
echo ($dog_count);

?>

           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo Language Basics
» Data Type Convert