1. Quick Explanation:
Scalar data types are used to represent a single value. Several data types fall under this category, including Boolean, integer, float, and string.
Variables can store data of different types, and different data types can do different things.
2. Example 1 – Scalar Data Types:
// decimal base integers $deci1 = 50; $deci2 = 654; // octal base integers $octal1 = 07; // hexadecimal base integers $octal = 0x45; $sum = $deci1 + $deci2; echo $sum;
3. PHP Training Course:
Download the Source code file:
5. Reference Topics:
6. PHP Manual Reference:
Do you know we teach Free PHP Course which has tons of Exercise, Assignments, Code Editor, Quiz and Certification. Access the course from here.