Data casting in PHP
Data casting in PHP means to take a data of one type and convert it to another. For example 3 represent a number. It is possible to represent this value as a string. In order to do so a desired data type, in this case string data type needs to be added in front of this value in parenthesis. A number 3 in this case will be converted to a string "3".
Comments
Post a Comment