Here's my code:
<?
function expDate($date) {
$month = substr("$date", 0, 2);
$len = strlen($date);
$year = substr("$date", $len-2, $len);
return $month;
return $year;
}
expDate("11/2002");
print "$month $year";
?>
I know this isn't the correct usage of return, but how to I get the $month
and $year variables so I can print them after I've called the expDate()
function? Currently, nothing is printed to the browser.
Thanks,
Tyler
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]