How to create an array with key value pairs?

Posted by Editorial Staff | Updated on

Want to create an array with key value pairs? Use the square bracket syntax:

$row["datasource_id"] is the key for where the value of $row[“title”] is stored in.


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers