Does PHP wait? (no replies)
Submitted by sudeepg on Thu, 08/14/2008 - 17:34.
Hi!
I have a php class that validates user submited content. It goes something like this:
$var = $validate->fct($_POST['something']);
... and in my class:
function fct($var){
//validates data
if($noproblem){
return $var;
}else{
//logout the user and exit();
}
}
I need to be sure that the script exits when !$noproblem. I really don't know if the php waits for the function to end or if it goes on. Any help?

Recent comments
24 weeks 12 hours ago
24 weeks 4 days ago
24 weeks 4 days ago
24 weeks 6 days ago
25 weeks 4 days ago
27 weeks 5 days ago
30 weeks 5 days ago
33 weeks 4 days ago
34 weeks 2 days ago
35 weeks 1 day ago