Prompt function in PHP which considers how many elements in an array. count() does not work.
count()
Hmm ... Well, since count () does not work, you will have to write your own function ...)
function count2($a = array()) { $c = 0; foreach ($a as $t) $c++; return $c; }
As an option...)
In general, count works if used correctly ...)
Source: https://ru.stackoverflow.com/questions/139005/More articles:Checking field values for uniquenessPHP loop does not work. DLECrash when unpacking win-rarHow to start learning php? [duplicate]JSON string conversionHow to animate a Background'a Grid change?Updating the progress bar using jQuery .animate ()Firefox bug or need tbody tag?How to send a screenshot obtained from AS3 without saving the file on the server?Spread tableAll Articles