php - Why this expression return error and how can I resolve? -
this question has answer here:
this code:
if(!empty(trim($_post['post']))){ }
return error:
fatal error: can't use function return value in write context in ...
how can resolve , avoid 2 checks ( trim , empty ) ?
i want check if post not blank space.
in documentation explains problem specifically, gives alternate solution. can use
trim($name) == false.
Comments
Post a Comment