note 37282 rejected from function.count by vincent

From: Date: Sat, 08 Nov 2003 21:59:58 +0000
Subject: note 37282 rejected from function.count by vincent
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-60147@lists.php.net to get a copy of this message
Note Submitter: morten@snus.dk ---- with the count function, can you get it to count the number of occurences in an array.. ? say in a guestbook, I have $rows = count ($fileName); but could I somehow change the function to give me the number of posts, but setting a parameter for it to count in the filename like eg. $post = count ($filename, '--------') Where -------- would indicate a new post in the guestbook..

« previous php.notes (#60147) next »