PHP how to count the arrays values? -


I am trying to count all the values ​​in the array and checking that a value has been entered and if It displays such a message for this and if there was more then a value entered displays a different message for it.

How do I enable it and where do I add it to my code?

Here is the code below.

  if ($ array == 1) {echo $ array "entered"; } Else {Echo Flat (",", $ array). "Has been recorded"; } (<$ Array == 1) {echo}      


Comments

Popular posts from this blog

iphone - How do I make a UIPickerView in a UIActionSheet -

java - Is there an object like a "Set" that can contain only unique string values, but also contain a count on the number of occurrences of the string value? -