Chạy thử Code Hàm gettype() trong PHP

Chạy thử Code Hàm gettype() trong PHP

Chạy thử Code Hàm gettype() trong PHP

Tự code rồi chạy thử... Chạy Thử
<!DOCTYPE html>
<html>
<head>
<title>Chạy thử Code Hàm gettype() trong PHP</title>
</head>
<body>
<h1>Chạy thử Code Hàm gettype() trong PHP</h1>

<?php 
$bienint = 35;
echo gettype($bienint)."<br>"; // integer

$bienstr =  "Chạy thử Code Hàm gettype() trong PHP";
echo gettype($bienstr)."<br>"; // string

$bienmang = array("Lực","Vân","Quỳnh");
echo gettype($bienmang)."<br>"; // array

$object = new stdClass();
echo gettype($object)."<br>"; // object

$biendouble = 3.5;
echo gettype($biendouble)."<br>"; // double

$biennull = NULL;
echo gettype($biennull)."<br>"; // NULL

$bienboolean = true;
echo gettype($bienboolean)."<br>"; // boolean
?>
</body>
</html>
Chạy thử Code Hàm gettype() trong PHP nằm trong bài viết Hàm gettype() trong PHP