From 68c5a2e4e83281c6be3be5cdb7b63ac4bf229214 Mon Sep 17 00:00:00 2001 From: exiam <36778679+exiam@users.noreply.github.com> Date: Mon, 17 Dec 2018 05:50:57 +0100 Subject: [PATCH] Edit wording/examples on PHP array documentation (#29885) --- guide/english/php/array/index.md | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/guide/english/php/array/index.md b/guide/english/php/array/index.md index 4c2e804d3f..a7b349a9ed 100644 --- a/guide/english/php/array/index.md +++ b/guide/english/php/array/index.md @@ -8,7 +8,7 @@ An array can be thought of as a collection of items. ## Syntax -An array is defined by array(), or []. +An array is defined by `array()`, or `[]`. An example of an array in each style can be seen below: @@ -16,13 +16,14 @@ An example of an array in each style can be seen below: value) + PHP arrays can store more than one type of value at a time: ``` Value - Arrays can also be defined with named keys, as shown below: ```php @@ -82,7 +81,7 @@ echo 'I like '. $bikes['not my favorite']; Would produce the following output: ``` -I like BWM +I like Yamaha ``` ## Multidimensional Array