Data types are various types of data that a variable can store. PHP supports eight data types. In this shot, we'll look at a few of them.
Example
<?php $text = "Educative"; var_dump($text);
Example
<?php $number = 12321123; var_dump($number);
Example
<?php $float = 123.123; var_dump($float);
Example
<?php $x = true; $y = false; var_dump($x);
Example
<?php $cities = array("Owerri","Telaviv","Washington"); var_dump($cities);
RELATED TAGS
CONTRIBUTOR
View all Courses