Guest User

Untitled

a guest
Jul 20th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. <?php
  2.  
  3. // this is valid php
  4. $foo = $bar ?: 'baz';
  5.  
  6. // it's the equivalent to
  7. $foo = isset($bar) && $bar ? $bar : 'baz';
Add Comment
Please, Sign In to add comment