[ create a new paste ] login | about

Link: http://codepad.org/ltSOEoA7    [ raw code | output | fork ]

nel - PHP, pasted on Jul 23:
1
2
3
4
5
6
7
8
9
<?php 

$var = 'Some Content'; // maybe null?

$cond = ( $var != '' ); // right expression returns true if $var is not empty

var_dump( $cond );

?>


Output:
1
bool(true)


Create a new paste based on this one


Comments: