News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Mike's Blog:
Time to say Good Bye
November 17, 2005 @ 05:38:33

According to this post on Mike's blog today, it's "time to say goodbye" to curly braces.

Yeah, it may come suddenly, but it's time to say good bye to curly braces used as string indexing operator.

PHP-5.1 will issue an E_STRICT error, and PHP-6 will probably don't know this syntax any more.

I don't know why, but I've got some strange sentimental feelings, maybe because I've never used those other brackets for string indexing...

The method he's talking about here is the $string{0} format, and it's making way for a unified string/array operator. It won't break things badly, though - in PHP 5.1 it'll just toss out a non-fatal error to let you know. But watch out, by PHP6, this functionality will be gone...

1 comment voice your opinion now!
curly braces string 5.1 curly braces string 5.1


blog comments powered by Disqus

Similar Posts

DotVoid.com: Parsing the user agent string using PHP

Mike Purcell's Blog: PHPUnit - Upgrade - Convert assertType to assertInternalType

Hasin Hayder's Blog: Unexpected return value from Facebook FQL.query via PHP REST Lib

DevShed: Handling File Data with the Facade Pattern in PHP 5

Evert Pot's Blog: Creating Streams from Strings in PHP


Community Events





Don't see your event here?
Let us know!


code deployment symfony interview threedevsandamaybe community tips series podcast list release language voicesoftheelephpant api zendserver introduction laravel framework conference bugfix

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework