User Guide and Documentation

isInactive() - Domain Name Inactive ControlRelease Date: 2019/07/30

It is used to check whether the domain name is passive or not.

public function isInactive($params=[]){
    $domain     = idn_to_ascii($params["domain"],0,INTL_IDNA_VARIANT_UTS46);

    $details    = $this->api->get_details($domain);
    if(!$details){
        $this->error = $this->api->error;
        return false;
    }
    return $details["status"] !== "active" ? true : false;
}

Parameters;

  • $params Provides the value of [options] index in the $order variable in the class.

Retrieval Value;

In Boolean, restore "true" if the domain name is passive and "false" if not.

Copyright © 2019. All rights reserved.
Top