public static mixed count ([array $parameters])
Allows to count how many records match the specified conditions
1 2 3 4 5 6 7 | //How many robots are there? $number = Robots:: count (); echo "There are " , $number , "\n" ; //How many mechanical robots are there? $number = Robots:: count ( "type = 'mechanical'" ); echo "There are " , $number , " mechanical robots\n" ; |
Please login to continue.