[ create a new paste ] login | about

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

swami - PHP, pasted on Sep 17:
1
2
3
4
5
6
7
8
9
<?php
$test = "    sfdf d  ";
if(trim($test)){
if (!empty($test))
    echo "true";
else
    echo "false";
}
?>


Output:
1
true


Create a new paste based on this one


Comments: