Perad Posted February 1, 2008 Share Posted February 1, 2008 $blah = array ('blah' => 'blah'); How do I add another entry to this array? Quote Link to comment Share on other sites More sharing options...
phpSensei Posted February 1, 2008 Share Posted February 1, 2008 with a "," comma. Quote Link to comment Share on other sites More sharing options...
Perad Posted February 1, 2008 Author Share Posted February 1, 2008 Sorry for being unclear, I mean, later on in the script how would I add another value? Quote Link to comment Share on other sites More sharing options...
rhodesa Posted February 1, 2008 Share Posted February 1, 2008 <?php $blah = array ('blah' => 'blah'); ..... $blah['foo'] = 'bar'; ?> Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted February 1, 2008 Share Posted February 1, 2008 <?php $blah['duh'] = 'duh'; ?> Ken Quote Link to comment Share on other sites More sharing options...
rhodesa Posted February 1, 2008 Share Posted February 1, 2008 Learn ALL about arrays here: http://us.php.net/types.array Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.