Welcome Guest, Not a member yet? Register   Sign In
stop current function and start next
#2

[eluser]KeyStroke[/eluser]
You could try this:
Code:
if (ereg("([0-9]{2})/([0-9]{2})/([0-9]{4})", $date1)) {          
Echo "its correct";            
}else{
$this->_function_b();
return; // an empty return - it basically stops the function from executing the rest of the code.
}

May I ask why are you doing this though? it seems strange to me.


Messages In This Thread
stop current function and start next - by El Forum - 04-21-2008, 03:20 AM
stop current function and start next - by El Forum - 04-21-2008, 03:27 AM
stop current function and start next - by El Forum - 04-21-2008, 03:27 AM
stop current function and start next - by El Forum - 04-21-2008, 03:33 AM



Theme © iAndrew 2016 - Forum software by © MyBB