cs.punk Posted June 18, 2009 Share Posted June 18, 2009 Uhm regarding arrays, the two little ' ', why are they there? What difference does it make? $example['with']; $example[without]; ... Quote Link to comment https://forums.phpfreaks.com/topic/162757-solved-to-arraythis-or-not-to-arraythis-that-is-the-question/ Share on other sites More sharing options...
Maq Posted June 18, 2009 Share Posted June 18, 2009 Go to the manual - Type Array - and go to: Array do's and don'ts Why is $foo[bar] wrong? Also, if you turn error_reporting on, you will notice it throws this: Notice: Use of undefined constant without - assumed 'without' in Quote Link to comment https://forums.phpfreaks.com/topic/162757-solved-to-arraythis-or-not-to-arraythis-that-is-the-question/#findComment-858889 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.