diff --git a/language/types.xml b/language/types.xml index 30f59d499e..263cd222b7 100644 --- a/language/types.xml +++ b/language/types.xml @@ -1,5 +1,5 @@ - + Types @@ -1089,9 +1089,8 @@ echo "I'd like to have another {${ strrev('reeb') }}, hips"; - For backwards compatibility, you may still use braces like - $str{42} for the same purpose. However, this syntax - is deprecated as of PHP 6. + They may also be accessed using braces like $str{42} + for the same purpose. However, using square array-brackets is preferred. @@ -1115,7 +1114,7 @@ $last = $str[strlen($str)-1]; $str = 'Look at the sea'; $str[strlen($str)-1] = 'e'; -// Deprecated syntax with braces +// Alternative method using {} $third = $str{2}; ?>