From 15bfa694cd8d468c9535bb60a25ab472902a7ddb Mon Sep 17 00:00:00 2001 From: Tankica Date: Mon, 17 Dec 2018 06:07:16 +0100 Subject: [PATCH] Add the count function (#31336) --- guide/english/php/array/index.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/guide/english/php/array/index.md b/guide/english/php/array/index.md index d4ac4b0e67..29ad6273d1 100644 --- a/guide/english/php/array/index.md +++ b/guide/english/php/array/index.md @@ -127,3 +127,13 @@ When working with arrays, there are a few important things to keep in mind: 2) Named keys must be escaped to be accessed (i.e. $bikes[not my favorite] would not work). For more information, please see [PHP: Arrays](http://php.net/manual/en/language.types.array.php) + + +## Length of an Array + +The count() function is used to return the length (the number of elements) of an array: + +