Re: First letter

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux