User Guide and Documentation

AddNumber() - Identify Phone NumbersRelease Date: 2019/08/01

It adds the phone numbers to be sent to the class.

Parameters;

  • $arg --- Phone number to send
  • $cc --- Country code of the phone number to be sent (Not Required)
public function AddNumber($arg=0,$cc=NULL){
    if(!is_array($arg)){
        if($cc != NULL) $arg = [$cc."|".$arg];
        else $arg = [$arg];
    }
    foreach($arg AS $num){
        if(strstr($num,"|")){
            $split  = explode("|",$num);
            $cc     = $split[0];
            $no     = $split[1];
            $num    = $cc.$no;
        }
        if(!array_search($num,$this->numbers)) $this->numbers[] = $num;
    }
    return $this;
}
Copyright © 2019. All rights reserved.
Top