PHP is a loosely or dynamically typed language which means you do not need to explicitly declare the data type of the variable……interpreter sets the value type depending upon the value stored to the variable…..Types of values those can be stored in Php are
Integer
String
Float
Array
Object
Boolean
Although casting(conversion fron one datatype to another) is not necessary in php but can be performed just in the same way as it was in c
Var2 = (data type) var1
No comments:
Post a Comment