Re: Why is some_function()[some_index] invalid syntax?

From: Date: Fri, 11 Jan 2008 04:08:22 +0000
Subject: Re: Why is some_function()[some_index] invalid syntax?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-267062@lists.php.net to get a copy of this message
Arlen Christian Mart Cuss wrote:
Hi there, Why is it that if I try to evaluate an index of an array returned by a function immediately, a syntax error is produced? (unexpected '[', expecting ',' or ';') Thanks, Arlen.
I asked that question years ago. It was explained to me that php does not have, what is called, messaging. Something that is in lower level languages.

« previous php.general (#267062) next »