$url = ‘http://smsgateways.com/api/sendmsg.php?’ . http_build_query([ ‘user’ => ”, ‘pass’ => ”, ‘sender’ => ”, ‘phone’ => ”, ‘text’ => ”, ‘priority’ => ‘ndnd’, ‘stype’ => ‘normal’ ]); $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch);