June 18, 2019
PHP Array: with all type of array

PHP array is a variable which can store multiple value in a single variable. Its work with Key & Value, means each Value is associated with Unique Key or Index Number. In PHP an array() function used to create arrays variable. Syntax of PHP Array is as follows: $fruits = array(“Apple”, “Banana”, “Watermelon”, “Coconut”, “Pomegranate”);