Created
April 24, 2020 11:04
-
-
Save Inzman/b47e2d5fd2d632876c9c290290245503 to your computer and use it in GitHub Desktop.
If content is really empty
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function empty_content($str) { | |
return trim(str_replace(' ','',strip_tags($str))) == ''; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment