Computer Science, asked by Anonymous, 11 months ago

How we can get the number of elements in an array?

Its a PHP language of computer kindly give answer related to subject

Have a Great dAy ^_^

Answers

Answered by EHSASS
1

ıllıllı ʜᴇʀᴇ ɪs ʏᴏᴜʀ ᴀɴsᴡᴇʀ ıllıllı

The count() function is used to return the number of elements in an array.

Understanding of arrays and array related helper functions is important for any PHP developer.  ✅ ✅ ✅

ᴇʜsᴀss ^_^

Answered by Anonymous
1

Answer:

You can use the PHP count() or sizeof() function to get the number of elements or values in an array. The count() and sizeof() function returns 0 for a variable that has been initialized with an empty array, but it may also return 0 for a variable that isn't set.

PHP: Hypertext Preprocessor (or simply PHP) is a general-purpose programming language ....

Have a Great Day to uuu...

Similar questions