[Php-it] array ricerca ordine alfabetico

Angelo Galleja angelo.galleja at email.it
Tue Apr 3 15:18:25 CEST 2007


Cristiano Verondini ha scritto:
>  Inoltre non amo la sintassi con le
> parentesi graffe per l'accesso ad elementi di una stringa (per quanto 
> forse più performante, ma non ho fatto dei test). Per inciso mi sembra 
> di avere letto che in PHP6 verrà abbandonata (ma su questa cosa non sono 
> per niente sicuro).
>

http://www.corephp.co.uk/archives/19-Prepare-for-PHP-6.html

{} vs []
You can currently use both {} and [] to access string indexes.
But the {} notation will raise an E_STRICT in PHP5.1 and will
be gone totally in PHP6.
Also the [] version will gain substr and array_slice functionality directly -
so you could do "[2,]" to access characters 2 to the end, etc. Very handy.


More information about the Php-it mailing list