There are several types of data in PHP, namely:
1.
Integer
Integer data type
declared integer data type.
Example
=
$
price = 500 000;
$
qty = 30;
2.
Double
Double data type data
type bilanagn declare real or fractional.
Example
=
$
long = 9:54;
$
volume = 1.5;
3. Boolean
Boolean data type has
two values. That is true or false.
4. String
Declare a string data
type of text data (character).
Example:
$
product = "Shampoo";
5. Array
Array data type is a
type of structured data that is useful for storing large amounts of data of the
same type. This type of array is one-dimensional and multidimensional.
6.
Object
Object data types are
data types in it has data and method.
7.
null
8.
Resource
9.
Nill
No comments:
Post a Comment