How do I get the index of an array for a given positive value or 1 below is my array. 

```
Array( [0] => stdClass Object
    ( [result] => )

[1] => stdClass Object
    ( [result] => 1 )

[2] => stdClass Object
    ( [result] => )

[3] => stdClass Object
    ( [result] => )

[4] => stdClass Object
    ( [result] => )

[5] => stdClass Object
    ( [result] => )

[6] => stdClass Object
    ( [result] => 1 )
 )

```

The above array result was come from this function, what it does, was to verify email address submitted to PQ and if the email is valid and registered it will return 1 or true, now i need to isolate this valid and registered email, as I need to send invitation to the rest of emails. 

```
  function get_email_verification(){
         $api_request_url = "http://api.payquicker.com/api/IsActiveAccount";
        foreach ($this->get_payquicker_emails() as $email) {
                $param = "email=".$email;
                $result_request[] =  $this->do_request($api_request_url, $param, 'GET', 'json');

        }
        if (empty($result_request)) {
            echo "All payee emails are already registered to Payquicker";
        }
       return $result_request; 
      }

```