PHP data types Data types specify the type of data the variable can accept. i.e numbers, characters etc. PHP also supports composite data types, such as arrays and objects. PHP supports a number of fundamental basic data types, such as integers, floats, and strings. PHP supports four data types:
- Integer - Float - String - Boolean
Range values of the data types are platform dependant. This range is typically that of 32-bit signed integers. The null data type represents a variable that has no value. The only value in the null data type is NULL Variables of the "resource" type represent references to resources from external sources.What’s the difference between htmlentities() and htmlspecialchars()?Htmlentities() converts all applicable characters to HTML entities. While htmlspecialcharacter()converts special characters to HTML entities. This means htmlentities( ) will check for non English language characters, such as French accents, the German umlaut, etc.
|