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? 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']]; Link to comment https://forums.phpfreaks.com/topic/212066-php-arrays/#findComment-1105191 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.