Hi! Could we please enable some services and cookies to improve your experience and our website?
Online Sandbox for SQL and PHP: Write, Run, Test, and Share SQL Queries and PHP Code
<?php
$int = 10;
$double = 3.14;
$boolean = true;
$string = "Hello";
$array = [1, 2, 3];
$object = new stdClass();
$null = null;
echo gettype($int) . "\n";
echo gettype($double) . "\n";
echo gettype($boolean) . "\n";
echo gettype($string) . "\n";
echo gettype($array) . "\n";
echo gettype($object) . "\n";
echo gettype($null) . "\n";
?>