Re: [PHP] Returning error code from a function

2002-03-02 Thread Greg Donald
On Sat, 2 Mar 2002, Anas Mughal wrote: >I am wondering if someone could shed some light on >this aspect of PHP. It might be something obvious, but >I am not able to figure it out. > >I have a function that returns a dynamically generated >HTML string. However, I need a way to let the caller >know

Re: [PHP] Returning error code from a function

2002-03-02 Thread DL Neil
Anas, > I am wondering if someone could shed some light on > this aspect of PHP. It might be something obvious, but > I am not able to figure it out. > > I have a function that returns a dynamically generated > HTML string. However, I need a way to let the caller > know if that function has faile

[PHP] Returning error code from a function

2002-03-02 Thread Anas Mughal
I am wondering if someone could shed some light on this aspect of PHP. It might be something obvious, but I am not able to figure it out. I have a function that returns a dynamically generated HTML string. However, I need a way to let the caller know if that function has failed. One way I thought