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. Link to comment https://forums.phpfreaks.com/topic/191140-php-logical-functions/ 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); Link to comment https://forums.phpfreaks.com/topic/191140-php-logical-functions/#findComment-1007855 Share on other sites More sharing options...
otuatail Posted February 6, 2010 Author Share Posted February 6, 2010 Yes thanks perfect. Desmond. Link to comment https://forums.phpfreaks.com/topic/191140-php-logical-functions/#findComment-1007856 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.