[eluser]Bondie[/eluser]
Say my array is something similar too:
Code:
$array = array('code' => array('html' => '<code></code>', 'bbcode' => '[code][\/code]'),
'php' => array('html' => '<span class="php"></span>', 'bbcode' => '[php][/php]')
);
obviously thats not going to work as its not valid blah blah, my question is using element() can i get an element of an element...?
I can obviously get the first element using:
Code:
$php = element('php',$array');
How would i get the second element??? :\
Code:
$bbcode = element('bbcode',$php)
would that work??
From the manual example usage:
Code:
$array = array('color' => 'red', 'shape' => 'round', 'size' => '');
// returns "red"
echo element('color', $array);
// returns NULL
echo element('size', $array, NULL);