redgunner Posted August 30, 2010 Share Posted August 30, 2010 I can't work out the quotes around this... $bookingID['$row['id']'] = $row['id']; echo $bookingID['$row['id'];']; Parse error: parse error, expecting `']'' What would fix this? Quote Link to comment https://forums.phpfreaks.com/topic/212066-php-arrays/ Share on other sites More sharing options...
trq Posted August 30, 2010 Share Posted August 30, 2010 Quotes are belong around strings, it really is that simple. $bookingID[$row['id']] = $row['id']; echo $bookingID[$row['id']]; Quote Link to comment https://forums.phpfreaks.com/topic/212066-php-arrays/#findComment-1105191 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.