20 likes | 183 Views
Declare Variable in PHP. Syntax: $ variable name; Data Type : Boolean :- Either True or False. Integer :- A Whole Number. Float :- A no Which may decimal place. String :- Series of Character. Array :- An Order Map. Object :- Contain Property and Method.
E N D
Declare Variable in PHP Syntax: $ variable name; Data Type : Boolean :- Either True or False. Integer :- A Whole Number. Float :- A no Which may decimal place. String :- Series of Character. Array :- An Order Map. Object :- Contain Property and Method. NULL :- Contain NULL Value.
Variable Declare Example. $a = 10 (integer variable) $b = 10.25 (float Variable) $c = ‘hello’ (character Variable) $d = “” (NULL Variable) $e[n] = 100 (Array Variable)