Advertisements
Advertisements
प्रश्न
List the supported data types in PHP.
थोडक्यात उत्तर
उत्तर
- String: A string is a sequence of characters. A string can be any text inside quotes. You can use single or double-quotes.
- Integer: An integer data type is a non-decimal number between -2,147,483,648 and 2,147,483,647.
- Float (floating point numbers): A float (floating-point number) is a number with a decimal point or a number in exponential form.
- Boolean: A Boolean represents two possible states. TRUE or FALSE.
- Array: An array stores multiple values in one single variable.
- NULL: Null is a special data type which can have only one value NULL. A variable of data type NULL is a variable that has no value assigned to it.
shaalaa.com
PHP Data Types
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?