Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html>
- <html>
- <head>
- <title>02.Type of variable</title>
- <meta charset="utf8"/>
- </head>
- <body>
- <?php
- echo gettype(102)."<br>";
- echo gettype(1.2)."<br>";
- echo gettype(true)."<br>";
- echo gettype('some text')."<br>";
- echo gettype(null)."<br>";
- echo gettype(array())."<br>";
- echo gettype(new stdclass());
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement