fork(17) download
  1. <?php
  2.  
  3. function post_isset($indexes) {
  4. foreach($indexes as $index) {
  5. if (!isset($_POST[$index])) {
  6. return false;
  7. }
  8. }
  9. return true;
  10. }
  11.  
  12. if (!post_isset(['nome', 'email'])) {
  13. echo "deu erro";
  14. }
Success #stdin #stdout 0.02s 24448KB
stdin
Standard input is empty
stdout
deu erro