note 112218 added to function.count
| From: | meathanjayatgmaildotcom | Date: | Fri, 17 May 2013 16:09:38 +0000 |
| Subject: | note 112218 added to function.count | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-194847@lists.php.net to get a copy of this message | ||
<?php
//PHP count function
$arr=array("hasan"=>array("Name"=>"Hasan Al
Mamun","Address"=>"Uttara, Dhaka","Profession"=>"Web
Developer"),
"meathanjay"=>array("Name"=>"Meathanjay","Address"=>"Nawabgonj,
Dhaka","Profession"=>"Nothing")
);
echo count($arr);
//Output 2
$arr=array("hasan"=>array("Name"=>"Hasan Al
Mamun","Address"=>"Uttara, Dhaka","Profession"=>"Web
Developer"),
"meathanjay"=>array("Name"=>"Meathanjay","Address"=>"Nawabgonj,
Dhaka","Profession"=>"Nothing")
);
echo count($arr,1);
//Output 8 when second Parameter true
----
Server IP: 69.147.83.199
Probable Submitter: 27.131.12.7
----
Manual Page -- http://php.net/manual/en/function.count.php
Edit -- https://master.php.net/note/edit/112218
Del: integrated -- https://master.php.net/note/delete/112218/integrated
Del: useless -- https://master.php.net/note/delete/112218/useless
Del: bad code -- https://master.php.net/note/delete/112218/bad+code
Del: spam -- https://master.php.net/note/delete/112218/spam
Del: non-english -- https://master.php.net/note/delete/112218/non-english
Del: in docs -- https://master.php.net/note/delete/112218/in+docs
Del: other reasons-- https://master.php.net/note/delete/112218
Reject -- https://master.php.net/note/reject/112218
Search -- https://master.php.net/manage/user-notes.php