title: How to hide Whatsapi tx and rx response output on screen
body: <p>I have googled this a lot and not found a single piece of answer....!</p>
  
  <p>I am using whatsapi to send messages with PHP.</p>
  
  <p>However, when i execute any of the functions including loginwithpassword() or sendmessage() it outputs respones with lines starting with tx. I want to integrate the api into my webiste and auto post certain inputs to some of my Whatsapp groups. </p>
  
  <p>I use the following code</p>
  
  <pre><code>$username = "91xxxxxxxx"; //Mobile Phone prefixed with country code so for india it will be 91xxxxxxxx
  $password = "Password";
  $identity = strtolower(urlencode(sha1($username, true)));
  $w = new WhatsProt($username, $identity, "WhatsApp Messaging", true); //Name your application by replacing "WhatsApp Messaging"
  $w-&gt;connect();
  $w-&gt;loginWithPassword($password);
  
  $phone="91xxxxxxxxxxx";
  
  $w-&gt;eventManager()-&gt;bind("onGetGroups", "onGetGroups");
  $w-&gt;sendGetGroups();
  
  function onGetGroups($phone,$groups)
  {
  echo "&lt;form action='' method='POST'&gt;";
  
  foreach($groups as $gr){
  
      echo "&lt;input type='checkbox' name='gids[]' value='$gr[id]'&gt;$gr[id] -&gt;   $gr[subject]&lt;br&gt;";
  }
  echo "&lt;textarea name='msg' rows='10' cols='40'&gt;&lt;/textarea&gt;";
  echo "&lt;input type='submit' name='gmsub' value='Send Group Message'&gt;";
  echo "&lt;/form&gt;";
  
  
  }
  
  if(isset($_POST['gmsub'])){
  $msg=$_POST['msg'];
  $groupc=$_POST['gids'];
  
  $total=count($groupc);
      for($i=0;$i&lt;$total;$i++){
          $gId=$groupc[$i];
  
          $w-&gt;sendMessage($gId, $msg);
      }
  }
  </code></pre>
  
  <p>I dont want the outputs like the following on my screen...</p>
  
  <pre><code>tx  &lt;stream:features&gt;
  tx    &lt;readreceipts&gt;&lt;/readreceipts&gt;
  tx    &lt;groups_v2&gt;&lt;/groups_v2&gt;
  tx    &lt;privacy&gt;&lt;/privacy&gt;
  tx    &lt;presence&gt;&lt;/presence&gt;
  tx  &lt;/stream:features&gt;
  
  tx  &lt;auth mechanism="WAUTH-2" user="91xxxxxxxxxx"&gt;&amp;£ºƒ91xxxxxxxxxn•Vv^¹ðÁ2EÎòƒ³oÎ¡1447256662&lt;/auth&gt;
  
  rx  &lt;start from="s.whatsapp.net"&gt;&lt;/start&gt;
  
  rx  &lt;stream:features&gt;&lt;/stream:features&gt;
  
  rx  &lt;challenge&gt;œÇÚ‰C¹WŒ™`¼%1Á™&lt;/challenge&gt;
  
  tx  &lt;response&gt;ó gÏD’—!°¶µpOðµ³ @³XH2înÆ/•[r&lt;/response&gt;
  
  rx  &lt;success t="1447256780" props="4" kind="free" status="active" creation="1413023053" expiration="1476095053"&gt;9Ož¦n»ÃFáG¨È{'sÊM‚&lt;/success&gt;
  
  .................etc 
  </code></pre>
  
  <p>I want to output only what i want on the screen. How do I suppress the tx and rx outputs on screen ?!</p>