Skip to content

Instantly share code, notes, and snippets.

@emaildano
Created January 17, 2014 16:21
Show Gist options
  • Save emaildano/8476264 to your computer and use it in GitHub Desktop.
Save emaildano/8476264 to your computer and use it in GitHub Desktop.
If PHP variable is empty.
if($variable !== '') {
echo $variable;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment