Initializing an array in PHP

Initialing an array in PHP can be done by two different ways.

First one is to use keyword array, and second one is to use square brackets.

Using square brackets to indicate that it is an array is available from PHP 5.4

Comments

Popular posts from this blog

Absolute and relative path in HTML pages

Errors

goto PHP operator