fork download
  1. <?php
  2.  
  3. $post = [ 'a' => 'valor A' , 'b' => '' , 'c' => 'valor C' ];
  4.  
  5.  
  6. if( count( $post ) !== count( array_filter( $post ) ) )
  7. {
  8. echo 'erro!';
  9. }
  10. else
  11. {
  12. echo 'ok!';
  13. }
  14.  
Success #stdin #stdout 0.01s 82880KB
stdin
Standard input is empty
stdout
erro!