Function not returning
- From: "Mike" <mike@xxxxxxxxxxxxxxxxxxxxx>
- Date: 17 Jul 2006 01:09:15 -0700
I have the following 2 scripts...
//functions.php
<?php
function test($mike) {
if ($mike = "hello"){
$reply = "you said hello";
return $reply;
} else {
$reply = "you didn't say hello";
return $reply;
}
}
?>
//test.php
<?php
include("functions.php");
$mike = "hello";
test($mike);
echo $reply;
?>
When I run test.php I don't get anything, blank screen.
What would I be doing wrong?
Thanks Mike
.
- Follow-Ups:
- Re: Function not returning
- From: Janwillem Borleffs
- Re: Function not returning
- Prev by Date: Re: Associative array
- Next by Date: Re: Function not returning
- Previous by thread: Re: Mail que system written in PHP for Linux?
- Next by thread: Re: Function not returning
- Index(es):