note 37282 added to function.count
| From: | morten at snus dot dk | Date: | Sat, 08 Nov 2003 21:18:30 +0000 |
| Subject: | note 37282 added to function.count | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-60145@lists.php.net to get a copy of this message | ||
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..
----
Manual Page -- http://www.php.net/manual/en/function.count.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+37282
Delete -- http://master.php.net/manage/user-notes.php?action=delete+37282&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+37282&report=yes
Search -- http://master.php.net/manage/user-notes.php