MENU
Typing
strval($m) returns the string value of $m. floatval($m) returns the float value of $m. intval($m[,$i]) returns the integer value of $m, using base $i.<!DOCTYPE html>
<html>
<head></head>
<body>
<?php
echo intval(042)."<br />";
echo intval('042')."<br />";
echo intval(123e2)."<br />";
echo intval('123e2')."<br />";
echo intval('111',2)."<br />";
echo intval([])."<br />";
echo intval([1])."<br />";
?>
</body>
</html>
34 42 12300 123 7 0 1
”array”, ”object” or ”null”. get_resource_type($r) returns the resource type as a string.