How can I write this code in one php operator?
$menu = theme('nice_menu', 1, 10, 'down');
print $menu['content'];
Something like this:
print theme('nice_menu', 1, 10, 'down')['content'];
How can I write this code in one php operator?
$menu = theme('nice_menu', 1, 10, 'down');
print $menu['content'];
Something like this:
print theme('nice_menu', 1, 10, 'down')['content'];
This is, unfortunately, not possible (at the current state of PHP). Your first example is the way to do it.