PHP | count() Function Ця вбудована функція PHP використовується в порядку поточних елементів в зоні. Function might return 0 for variable that has been set to empty array. Also for variable which is not set the function returns 0.

The count() function returns число елементів в an array.

PHP substr_count() Function Substr_count() функція counts number of times a substring occurs in a string. Note: The substring is case-sensitive. Note: Ця функція не є count overlapped substrings (see example 2).