RE: [PHP] Problem with functions

From: Date: Fri, 20 Dec 2002 16:05:13 +0000
Subject: RE: [PHP] Problem with functions
Groups: php.general 
Request: Send a blank email to php-general+get-129003@lists.php.net to get a copy of this message
Hi, > I keep getting errors in my script that says 'x' function > is undefined or 'y' function is undefined. I defined it as > 'function test ($a, $b)' and call it using 'test($a, $b)' You need to post code :-) Try this: <?php function test ($a, $b) { echo "I am the test function<br />"; echo "a is $a<br />"; echo "b is $b<br />"; } test(1, 2); ?> Cheers Jon

« previous php.general (#129003) next »