PHP data types

There are several data types in PHP. I will list these:


Null - represent absence of a value.

Boolean - it is true or false.

Integer - upper limit, depends on the computer architecture.

Float - a number with a digits after a floating point.

Array - a collection of data types. Numbering of elements in array starts with 0. An array may contain data of various types.

String - this variable contain a list of characters, this is same as having an array of characters.

Object. The methods and variables of an object can be accessed with an arrow pointing to the right.

Resource variables hold handles to open objects, these can be files, databases, images, etc.

YouTube video

Comments

Popular posts from this blog

Absolute and relative path in HTML pages

Errors

goto PHP operator