Posted by Sonic on 08/21/05 19:03
<?php
function foo($bar)
{
return print($bar);
}
if ( print("a") | print("b") );
echo "<br>";
if ( print("a") || print("b") );
echo "<br>";
if ( print("a") or print("b") );
echo "<br>";
echo "<br>";
if ( foo("a") | foo("b") );
echo "<br>";
if ( foo("a") || foo("b") );
echo "<br>";
if ( foo("a") or foo("b") );
?>
What is the difference?
Navigation:
[Reply to this message]
|