how to use array_push when pushing both key and value in PHP

kansiolygdea

New Member
I have an empty array. I am able to push values using \[code\]array_push($list, item[0]);\[/code\]But how do I push both key and value.\[code\]array_push($list[$key], $item[0])\[/code\]this does not work.I appreciate any help.Thanks.
 
Back
Top