Arrays in PHP
Array is ordered list of elements.
Array in PHP can be defined by two different ways.
First one is to use keyword array, and second one is to use square brackets.
If these don’t contain any data, then it will be an empty array at initialization. However, it is possible to initialize an array with values. In order to do so values of that array needed to be specified.
Comments
Post a Comment