1. The Numeric Array: The array with a numeric index.
$input = array(10,20,30,40,50);
2. The Associative Array: The array with string or number index. The elements of this array are stored in the form of a key-value pair.
$input = array(0 =>Emma, 1=>Alice, 2=>’John’);
In this page (written and validated by A. Gawali) you learned about
. What's Next? If you are interested in completing PHP tutorial, we encourage you simply to start here: PHP Tutorial.
Incorrect info or code snippet? We take very seriously the accuracy of the information provided on our website. We also make sure to test all snippets and examples provided for each section. If you find any incorrect information, please send us an email about the issue: email@example.com.