is there any way for a function to return something witch will stop the caller function (like a return)?
something like:
function fu()
{
...
checkForError();
...
}
function checkForError()
{
if (error)
{
return something witch will stop the caller function (like return return 0)
}
}
die() or exit() aren't suitable becouse they stop the whole script not just a function.