title: Check WhatsApp numbers with PHP
body: <p>How can I check WhatsApp phone numbers if they are available or not? </p>
  
  <p>Is there a working example for this?</p>
  
  <p>I will use PHP or any server side code to check numbers and get the last seen data. </p>
  
  <p>I get this error with mgp25 s api</p>
  
  <pre><code>Array ( [cc] =&gt; 90 [in] =&gt; 5418444444 [lg] =&gt; tr [lc] =&gt; TR [id] =&gt; !`mè)lv���Լ,�!�0� [token] =&gt; VXqFr1tQChP8xtTzz4U2jxV8KWU= [mistyped] =&gt; 6 [network_radio_type] =&gt; 1 [simnum] =&gt; 1 [s] =&gt; [copiedrc] =&gt; 1 [hasinrc] =&gt; 1 [rcmatch] =&gt; 1 [pid] =&gt; 6840 [rchash] =&gt; 2f7edc328bc9f21ac98a8eb3d323dd1a7c104e7b0f49c0ffe66f9c2bb0ca9207 [anhash] =&gt; f4f4c4784c6166b69329839f38176700 [extexist] =&gt; 1 [extstate] =&gt; 1 [mcc] =&gt; 286 [mnc] =&gt; 000 [sim_mcc] =&gt; 286 [sim_mnc] =&gt; 000 [method] =&gt; sms ) stdClass Object ( [login] =&gt; 90544444444 [status] =&gt; fail [reason] =&gt; bad_token ) 
  Fatal error: Uncaught exception 'Exception' with message 'There was a problem trying to request the code.' in /Library/WebServer/Documents/wp/src/Registration.php:316 Stack trace: #0 /Library/WebServer/Documents/wp/examples/exampleRegister.php(44): Registration-&gt;codeRequest('sms') #1 {main} thrown in /Library/WebServer/Documents/wp/src/Registration.php on line 316
  </code></pre>