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
Physics,
1 month ago
Computer Science,
1 month ago
Accountancy,
2 months ago
Math,
2 months ago
Biology,
9 months ago
Math,
9 months ago