fork download
  1. <?php
  2.  
  3. $email = "test@ya.ru";
  4.  
  5. $array = [
  6. "test@ya.ru"=> true,
  7. "domains"=> false
  8. ];
  9.  
  10. var_dump($array[$email]);
  11.  
  12. var_dump(reset($array));
  13.  
  14.  
Success #stdin #stdout 0.02s 25852KB
stdin
Standard input is empty
stdout
bool(true)
bool(true)
array(2) {
  [0]=>
  bool(true)
  [1]=>
  bool(false)
}