3. PHP Data Type

PHP Data Type: 2 data type

1. Scaler Data type:



Example values

integer  A whole number (32 bit) 15, -36
float  A floating point number (32 bits with fraction) 9.58, -65.58
string  A sequence of characters "World", "abc123@#$"
unicode  A sequence of Unicode characters "Hello", "abc123@#$"
binary  A sequence of binary (non-Unicode) characters "Hello", "abc123@#$"
boolean  Either true or false true, false

2. Compound Data Type:

Array : Can hold multiple values indexed by numbers or strings

Object: Can hold multiple values (properties), and can also contain methods


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s