Page 1 of 1

Add New Key to Array

Posted: Thu Jul 24, 2008 7:13 pm
by tecktalkcm0391
Is this possible to do, someway, cause I can't get it to work!

Code: Select all

$output = array();
$output['thisNewKey'] = 'thisNewValue';

Re: Add New Key to Array

Posted: Thu Jul 24, 2008 9:37 pm
by califdon
That works for me. Are you saying that you get an error, or you assign the value but can't read it out?