title: How to add space between text in SMS in PHP?
body: <p>I am developing a SMS integration with PHP(curl), I have one issue regarding the SMS text spaces, as variable $fadd hold an address of a user with some street-name,lane,state etc.
  Example: $fadd=abc street abc lane abc state.
  But in a actual SMS the spaces between street lane and state gets disapeared.
  such as
  Example: abcstreetabclaneabcstate.
  so how can i add spaces in a address that is stored in a variable?</p>
  
  <pre><code>&lt;?php
  
  if(isset($_POST['sub']))
  {
          $driver_name=$_POST['driver_name'];
          $vehicle=$_POST['vehicle'];
          $two_values = explode('_', $_POST['driver_name']);
          $ticket_id=$_POST['ticket_id'];
          $phone=$_POST['phone'];
          $fadd=$_POST['fadd'];
  
          $var="user=user&amp;password=password&amp;sender=sender&amp;sendercdma=1234567890&amp;text=".$ticket_id."+".$fname."+".$fadd."+".$phone."+".$date."+".$time."&amp;PhoneNumber=91".$two_values[1]."&amp;track=1";
  
      echo $var;
  
      $curl=curl_init('http://sms.manddigitalsolutions.com/sendsms.asp');
      curl_setopt($curl, CURLOPT_POST, true);
      curl_setopt($curl, CURLOPT_POSTFIELDS, $var);
      curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
      $result= curl_exec($curl);
      echo $result;
      curl_close($curl);
      die("SMS has sent.....");
                   echo '&lt;script language="javascript"&gt;';
                   echo 'alert("Success....!"); location.href="assigndriver.php"';
                   echo '&lt;/script&gt;';
  }
  ?&gt;
  </code></pre>