<?php
echo "printing BOOLEAN type\n";
$a = True; // this is boolean type
echo $a; echo "\n";
$a = False;
echo $a; echo "\n"; // this will show nothing
/*--------------------------*/
echo "\nprinting INTEGER type\n";
$b = 1223;
echo $b; echo "\n";
/*--------------------------*/
echo "\nprinting FLOAT type\n";
$c = 1.6969;
echo $c; echo "\n";
/*--------------------------*/
echo "\nprinting STRING type\n";
$d = "hello world this is a PHP code";
echo $d; echo "\n";
?>
- Output for 5.5.24 - 5.5.35, 5.6.8 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
- printing BOOLEAN type
1
printing INTEGER type
1223
printing FLOAT type
1.6969
printing STRING type
hello world this is a PHP code
preferences:
171.65 ms | 404 KiB | 193 Q