note 53437 added to function.return
| From: | shingiyp56 at yahoo dot com dot hk | Date: | Wed, 01 Jun 2005 16:28:10 +0000 |
| Subject: | note 53437 added to function.return | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-89745@lists.php.net to get a copy of this message | ||
<?
$count =0;
function xyz($count) {
$count ++;
return $count;
}
for ($i=1;$i<10;$i++){
xyz(0);
}
echo $count;
?>
I found this script not working....dont know why....pls help me..thx
----
Manual Page -- http://www.php.net/manual/en/function.return.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+53437
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+53437&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+53437&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+53437&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+53437&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+53437&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+53437&report=yes
Search -- http://master.php.net/manage/user-notes.php