Contact Us || Privacy Policy || About Us |
|
Data Types in PHPVariables can store different types of data like...
PHP StringA string is a sequence of characters, in closed in single or double quotes, that is called PHP String. Example :-Output Visit on rojgarbharat.info Visit on JanoJago.com PHP IntegerRules for integers:
PHP var_dump() function returns the data type and value: Example :-Output int(12345) PHP Floating Point Numbers or Doublesfloating point number is also known as decimal point or a number in exponential form. Example :-Output float(10.365) The PHP var_dump() function returns the data type and value: PHP Boolean
Example :-Output bool(true) PHP ArrayAn array stores multiple values in one single variable. Example :-Output array(3) { [0]=> string(5) "Volvo" [1]=> string(3) "BMW" [2]=> string(6) "Toyota" } PHP ObjectAn object is a data type which stores data and information . we use the class keyword. A class can contain properties and methods: Example :-Output VMW PHP NULLNULL value is used to empty variables in PHP. Example :-Output NULL PHP ResourcesPHP Resources means path or location that means related to database connections.. Example :-Output |