Source Code:
(back to article)
<?php $var1 = "hello"; $var2 = 42; $var3 = true; $var4 = []; echo gettype($var1) . "\n"; // output: string echo gettype($var2) . "\n"; // output: integer echo gettype($var3) . "\n"; // output: boolean echo gettype($var4) . "\n"; // output: array ?>
Result:
Report an issue