Saved Bookmarks
| 1. |
Discuss about special data types used in PHP. |
|
Answer» Special data types Null: Special data type with value NULL. This is the default value to a variable, if we do not set a value to it. $m=null; Array: Array is a collection of elements. With the same name we can store many elements. Three types of array –
Object: Similar in C++ and must be declared explicitly. At first a class is declared and then objects can be created using the command ‘new’. Resources: It is not an actual data type rather it is a special variable that hold references to file handler, data base object, etc. |
|