count関数の第2引数

count関数に第2引数があることを今更知った [PHP, 開発日記] – Programming Magic

count関数の第2引数$modeにCOUNT_RECURSIVE(または 1)をセットした場合、配列を再帰的にカウントする。

おっと、私も知らなかったです。しかし記事中でも言及されているように、ちょっと使い道が難しい感じはします。とりあえず覚えておけば、いつか使う日がくるかな。。

関連する記事:

Powered by

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">