Re: Why doesn't this work?
| From: | Rasmus Lerdorf | Date: | Mon, 17 Sep 2001 04:10:13 +0000 |
| Subject: | Re: Why doesn't this work? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-67558@lists.php.net to get a copy of this message | ||
> print split("=",$testString)[0];
First, using split() on such a simple delimiter is a waste. Use
explode(). And yes, PHP does not support automatic dereferencing of
returned arrays like that.
-Rasmus