×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: jaid int
Added: Dec 14, 2016 4:28 PM
Views: 12
Tags: if condition
  1. $var = ( true/false ? true : false );
  2.  
  3. $result = $val ? $val : 'Fail';
  4. $result = $val ? ($xx ? 'DATA' : false) : 'Fail';