Skip to content

Instantly share code, notes, and snippets.

@viniciusss
Created July 24, 2013 13:52
Show Gist options
  • Save viniciusss/6070794 to your computer and use it in GitHub Desktop.
Save viniciusss/6070794 to your computer and use it in GitHub Desktop.
<?php
function execToExc(array $executa)
{
if('acerto' != $executa['classe'])
throw new Exception($executa['msg']);
return $executa;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment