Re: Bug #2341: expression evaluation - improvement
| From: | Andrei Zmievski | Date: | Tue, 21 Sep 1999 16:20:05 +0000 |
| Subject: | Re: Bug #2341: expression evaluation - improvement | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-11151@lists.php.net to get a copy of this message | ||
tsf@post.cz wrote:
> From: tsf@post.cz
> Operating system: Linux
> PHP version: 3.0.12
> PHP Bug Type: Parser error
> Bug description: expression evaluation - improvement
>
> I think it'd be nice if I could use e.g.
>
> echo
> array("Su","Mo","Tu","We","Th","Fr","Sa")[$i];
>
> anyway, it throws out a parser error in 3.0.12
>
> is there any chance this would change?
Why do you need this unusual syntax? Just assign the array to a variable and
simplify it.
-Andrei
* The future has arrived, it's just not evenly distributed. -W. Gibson *