Jump to content

php logical functions


otuatail

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.