otuatail Posted February 6, 2010 Share Posted February 6, 2010 is there a way to get the return value of a function logicaly ORd to a variable. $val = 0; $val = myfunction($a); $val = myfunction($b); $val = myfunction($c); $val = myfunction($d); Here the value of $val will be that set by the last function. If I could do a logical function and any one of the calls returned a one, the end result would be a 1 Desmond. Quote Link to comment Share on other sites More sharing options...
JAY6390 Posted February 6, 2010 Share Posted February 6, 2010 Do you mean like $val = 0; $val = $val | myfunction($a); $val = $val | myfunction($b); $val = $val | myfunction($c); $val = $val | myfunction($d); Quote Link to comment Share on other sites More sharing options...
otuatail Posted February 6, 2010 Author Share Posted February 6, 2010 Yes thanks perfect. Desmond. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.