note 44292 added to functions
| From: | anon2 at rn2 dot php dot net | Date: | Tue, 20 Jul 2004 16:59:05 +0000 |
| Subject: | note 44292 added to functions | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-73703@lists.php.net to get a copy of this message | ||
QUESTION
This script should return "1", but it's returning "0". Why?
<?php
$ble = "home";
function dzial($tmp) {
if ($tmp==$ble) return 1;
return 0;
}
echo dzial("home");
?>
----
Manual Page -- http://www.php.net/manual/en/functions.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+44292
Delete -- http://master.php.net/manage/user-notes.php?action=delete+44292&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+44292&report=yes
Search -- http://master.php.net/manage/user-notes.php