Data Types

<?php
$number = 100;        // Integer
$price = 99.99;       // Float
$name = "PHP";        // String
$is_active = true;    // Boolean
?>

Explanation:
PHP supports int, float, string, boolean, array, object, null types.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *