I am writing a function that performs some actions. I would like to
return true if the actions succeed, or return an error message if the
actions fail. How should I go about it? The following code doesn't do
it, because the returned error message is interpreted as a boolean
true (I think
On Thursday 18 April 2002 23:25, Erik Price wrote:
I am writing a function that performs some actions. I would like to
return true if the actions succeed, or return an error message if the
actions fail. How should I go about it? The following code doesn't do
it, because the returned error
a
function.
-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 18, 2002 9:25 AM
To: [EMAIL PROTECTED]
Subject: [PHP] function returning true or errors
I am writing a function that performs some actions. I would like to
return true if the actions
On Thursday, April 18, 2002, at 11:56 AM, Jason Wong wrote:
What I tend to do is define functions like so:
function doo($dah, $dib, $error) {
...
I had not even thought about passing an extra parameter by reference --
great idea.
Erik
Erik Price
Web Developer Temp
Media
4 matches
Mail list logo