This makes both $result and $result_keyed have the same elements, but note the difference between the keys. The printout of $result and $result_keyed will be:
Array ( [0] => Array ( [0] => green [1] => red )
[1] => 4 [2] => php ) Array ( [2] => Array ( [0] => green [1] => red )
[1] => 4 [0] => php )
Note: The second parameter was added in PHP 4.0.3.
Deliver First Class Web Sites: 101 Essential Checklists Want to learn how to make your web sites usable and accessible? Want to ensure that your sites meet current best practice, without spending hours trawling through incomprehensible specifications and recommendations from dozens of different books, research papers, and web sites? Want to make sure that the sites you build are "right the first time," requiring no costly redevelopments?