sendSMS("+639464023948", $cleaned, $variable); // SEND TEXT ITXTMO // echo "
" . $status; //------------------------------------------------------------------------------------------------------------ // $string = "Hi [firstname]"; // if(stripos($string, '[firstname]')){ // echo 'Found1'; // } // else { // echo 'Not found'; // } // ---------------------------------------------------------------------------------------------------------------------------------- $url = 'https://www.itexmo.com/php_api/apicode_info.php?apicode=PR-AUTOH172111_IE74I'; // $curl_handle = curl_init(); // curl_setopt($curl_handle,CURLOPT_URL, $url); // curl_setopt($curl_handle,CURLOPT_CONNECTTIMEOUT,2); // $str = curl_exec($curl_handle); // curl_close($curl_handle); // print_r(json_decode($str,true)); $response = (file_get_contents($url)); //Converting in json string // $n = strpos($response, "["); // $response = substr_replace($response, "", 0, $n + 1); // $response = substr_replace($response, "" , -1, 1); $arr = array(); // print_r(json_decode($response, true)); $arr = json_decode($response, true); // print_r($arr); echo $arr['Result ']['MessagesLeft']; ?>