Possible Duplicate:
PHP syntax for dereferencing function result
I have a string, which looks like 1234#5678. Now I am calling this:
$last = explode("#", "1234#5678")[1]
Its not working, there is some syntax error...but where? What I expect is 5678 in $last
. Is this not working in PHP?