Skip to content

Instantly share code, notes, and snippets.

@maykonmeier
Created August 3, 2014 19:57
Show Gist options
  • Save maykonmeier/5e39568a2d7914c8fb16 to your computer and use it in GitHub Desktop.
Save maykonmeier/5e39568a2d7914c8fb16 to your computer and use it in GitHub Desktop.
Operadores lógicos
<?php
// foo() nunca será chamada
$a = (false && foo());
$b = (true || foo());
$c = (false and foo());
$d = (true or foo());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment