php - Why this expression return error and how can I resolve? -


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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -