title: php strlen returning incorrect values
body: <p>I'm using laravel 5.7, and i decided to play with some strings, here comes my problem, basically, my code in my controller goes like this.</p>
  <pre><code>$from = strlen($request-&gt;from);
  
  $to  = strlen($request-&gt;to);
    
  return array('from_len' =&gt; $from, 'to_len'=&gt;$to);
  </code></pre>
  <p>what I'm sending in postman is like this</p>
  <pre><code>&quot;direction&quot; : true,
  &quot;to&quot; : &quot;&quot;,
  &quot;from&quot; : &quot;‬&quot;
  </code></pre>
  <p>and what return is this</p>
  <pre><code>{
   &quot;from_len&quot;: 3,
   &quot;to_len&quot;: 0
  }
  </code></pre>
  <p>So yeah i don't understand what is happening.</p>
  <p>Thanks in advance for your attention people.</p>