PHP Datatypes

Data type will specify what kind of value will assign to variable
PHP supports all data type

Stranded Data type: assign only one value to variable data types are int, float, Boolean

Compound Data Type: It supports to assigned multiple values to variables data types are
1. Array
2. Object

Type Casting: Conversion of a variable data type is called as type casting we can convert temporarily and permanently

Temporary Type Casting: If you convert any variable data type with in a expiration or within a line is called Temporarily Type Casting.


Permanent Type Casting: Conversion of variable data type permanently using predefined function is called “set type”

No comments:

Post a Comment