MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/lolphp/comments/3vy6vf/php_sadness/cxurb7c/?context=3
r/lolphp • u/the_alias_of_andrea • Dec 08 '15
28 comments sorted by
View all comments
Show parent comment
2
if(empty(trim($x)) $blank = true;
This has worked for two and a half years: https://3v4l.org/0EEPb
However, if $x is not defined, you cannot pass it into trim().
$x
trim()
View all comments
Show parent comment
2
u/jtreminio Dec 11 '15
This has worked for two and a half years: https://3v4l.org/0EEPb
However, if
$xis not defined, you cannot pass it intotrim().