Skip to content

Instantly share code, notes, and snippets.

@stefano-rs
Created April 15, 2016 20:11
Show Gist options
  • Save stefano-rs/6d82975731abc4d5734257dffa880c47 to your computer and use it in GitHub Desktop.
Save stefano-rs/6d82975731abc4d5734257dffa880c47 to your computer and use it in GitHub Desktop.
<?php
$ex = new stdClass;
if(property_exists($ex, "nome_propiedade")){
echo 'exite';
} else {
echo 'nao existe'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment