is there a way to nest brackets?
Posted: Wed Apr 18, 2007 9:24 am
Normally I do this:
Is there a way to skip that step and do something like this:
I know this doesn't work, but I wonder if there is a syntax that does.
Thanks!
Code: Select all
$foo = $_GET['foo'] ;
echo $some_array[$foo] ;Is there a way to skip that step and do something like this:
Code: Select all
echo $some_array[$_GET['foo'] ] ;I know this doesn't work, but I wonder if there is a syntax that does.
Thanks!