Lab # 2
Basics of PHP
Lab-2-3-gettype-settype.php
<?php
$a=10.5;
echo gettype($a);
settype($a,"int");
echo "<br>".gettype($a);
?>
Please try to yourself with other examples...
Output
![]() |
| settype() and gettype() in php | by Practical Server |
Happy Coding :)


0 Comments
Post a Comment