Array is a collection of heterogeneous elements. There are two types of arrays in PHP. First type of array is a normal one that contains integer keys (indexes) which can be found in any typical programming languages. The second type of arrays is an associative array, where the keys are strings. Associative arrays are also known as hashes. Array Creation Arrays in PHP are dynamic. There is no need to specify the size of an array. A normal array can be created by using the integer index and the assignment operator as shown below: $array1 = 10; If no
The post How to use arrays in PHP appeared first on Coding Security.
How to use arrays in PHP
read more
Tidak ada komentar:
Posting Komentar