note 44292 rejected from functions by tomsommer
| From: | tomsommer@php.net | Date: | Tue, 20 Jul 2004 17:27:16 +0000 |
| Subject: | note 44292 rejected from functions by tomsommer | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-73721@lists.php.net to get a copy of this message | ||
Note Submitter: anon2 [at] wp [dot] pl
----
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");
?>