how to add item to array by key in PHP

BlanchGilbh

New Member
I usually add item to array in PHP by\[code\]$a = array();$a['key'] = 'value';\[/code\]But it give me a E_NOTICE warning of undefined index.How to add item to array by Key correctly.
 
Back
Top