Write a PHP script to set type of variable using type casting || DWPD Sem 5 Practical 11

DWPD : Practical 11



index.php file Code<?php
 $a=10;
 echo "variable a is --> ".gettype($a)."<br>";
 
 $b=(string)$a;
 
 echo "variable b is --> ".gettype($b);
?>
 


Output :

 

Comments