diff --git a/language/types/array.xml b/language/types/array.xml index 323a2ec491..04dcb9b90f 100644 --- a/language/types/array.xml +++ b/language/types/array.xml @@ -303,6 +303,12 @@ string(3) "foo" + + + Both square brackets and curly braces can be used interchangeably for accessing array elements (e.g. $array[42] and $array{42} will both do the same thing in the example above). + + + As of PHP 5.4 it is possible to array dereference the result of a function or method call directly. Before it was only possible using a temporary variable.