B BlanchGilbh New Member May 12, 2012 #1 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.
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.