write a program in PHP for type casting of a variable
Answers
Answered by
1
Answer:
php $i =1; var_dump($i); //$i is integer $i = 2.3; var_dump($i); //$i is float $i = "php type casting"; var_dump($i); //$i is string ?> In above example, you can see that variable $i type is getting changed on the different type of value assignment.
Similar questions