I found the possible problem and a solution.
I was putting the function below the function call. This is
how it worked with Perl and I was trying to do it the same
way. I couldn't figure out how to put this function earlier
in the script so I put the code I wanted to re-use in a separate
script
if you're creating an instance of a class object
someFunction("Foobar!");
?>
Cheers,
-Jonathan Sharp
> -Original Message-
> From: Jeff Oien [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 15, 2001 8:01 PM
> To: PHP
> Subject: [PHP] Newbie User Def Function Question
>
>
>
2 matches
Mail list logo