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 https://forums.phpfreaks.com/topic/88914-array-question/ Share on other sites More sharing options...
phpSensei Posted February 1, 2008 Share Posted February 1, 2008 with a "," comma. Quote Link to comment https://forums.phpfreaks.com/topic/88914-array-question/#findComment-455428 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 https://forums.phpfreaks.com/topic/88914-array-question/#findComment-455475 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 https://forums.phpfreaks.com/topic/88914-array-question/#findComment-455478 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 https://forums.phpfreaks.com/topic/88914-array-question/#findComment-455479 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 https://forums.phpfreaks.com/topic/88914-array-question/#findComment-455485 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.