PHP Lesson 4: Basic Data Types

2 years ago
75

https://xoax.net/

Lesson Page:
https://xoax.net/php/crs/core/lessons/Lesson4/

This lesson explains the four basic data types of PHP and how their conversions are handled: boolean, int, floating-point, and string. When a variable is displayed inside a string, the value of the variable is automatically converted to a string type. Automatic conversions occur in PHP under other various circumstances, like arithmetic operations, and we must understand how and when those occur. Lastly, we can cause controlled type conversions with type casts.

Copyright 2021 XoaX.net LLC

Loading comments...