Re: First letter
| From: | Lang Sharpe | Date: | Thu, 29 Apr 2004 02:01:00 +0000 |
| Subject: | Re: First letter | ||
| References: | 1 2 3 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-34157@lists.php.net to get a copy of this message | ||
Cornelia Boenigk wrote:
> Hi Matt
>
> You can teat a string like an Array
> $first = $string[0];
> $second = $string[1]
> and so on.
Actually this method is deprecated. The current best way is to use curly
braces.
$first = $string{0};
$second = $string{1};
Lang