note 45933 added to function.count
| From: | Eclipseatadmin at eclipsethenet dot us | Date: | Thu, 23 Sep 2004 22:56:17 +0000 |
| Subject: | note 45933 added to function.count | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-77268@lists.php.net to get a copy of this message | ||
This maybe be useful when the user defines, or influences, how many $_POST, $_GET, $_SESSION, or
$_REQUEST variables:
<?php
$count = count($_GET); //This will find how many variables were added to the url
$count = count($_POST); //This will find how many variables were submit via HTTP POST
$count = count($_SESSION); //This will find how many variables are stored to the current session
?>
----
Manual Page -- http://www.php.net/manual/en/function.count.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+45933
Delete -- http://master.php.net/manage/user-notes.php?action=delete+45933&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+45933&report=yes
Search -- http://master.php.net/manage/user-notes.php