Posted by William Stokes on 03/17/05 10:24
I'm trying to learn functions (just started). I can't see why this fails: <?php function count($var) { if ($var == 10){ $result = $var + 10; return $result; } else { $result = $var + 20; return $result; } } $setvar = 10; count($setvar); echo "$result"; ?> I probably just didn't understand my manual. Any ideas? Thanks -Will
[Back to original message]
Copyright © 2005-2006 Powered by Custom PHP Programming