I've been struggling with some weird thing about php for a while.
It seems as if it is unable to display some string and a multidimensional array element using one line of code.
For example we have a simple 3d array:
$ARRAY = array('first' => array(array('Hello, World!')));
Now if I want to display some string and that 3rd level element, I'll have to do something like this:
$a = $ARRAY['first'][0][0];
echo"Some string: $a";
Or this:
echo"Some string: ";
echo($ARRAY['first'][0][0]);
So is there any way to actually do it in just one line of code?
Thank you!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…