<?php
function post_isset($indexes) {
foreach($indexes as $index) {
if (!isset($_POST[$index])) { return false;
}
}
return true;
}
if (!post_isset(['nome', 'email'])) {
echo "deu erro";
}
PD9waHAKCmZ1bmN0aW9uIHBvc3RfaXNzZXQoJGluZGV4ZXMpIHsKCWZvcmVhY2goJGluZGV4ZXMgYXMgJGluZGV4KSB7CgkJaWYgKCFpc3NldCgkX1BPU1RbJGluZGV4XSkpIHsKCQkJcmV0dXJuIGZhbHNlOwoJCX0KCX0KCXJldHVybiB0cnVlOwp9CgppZiAoIXBvc3RfaXNzZXQoWydub21lJywgJ2VtYWlsJ10pKSB7CgllY2hvICJkZXUgZXJybyI7Cn0=