title: Does PHP have equivalent string length function than JavaScript's string length function? ("‍♂️".length === 7, int(5), int(17))
body: <p>Please see this example:</p>
  <h1>In JavaScript</h1>
  <pre class="lang-js prettyprint-override"><code>console.log('‍♂️'.length) // 7
  </code></pre>
  <h1>In PHP</h1>
  <pre class="lang-php prettyprint-override"><code>&lt;?php
  
  var_dump(strlen(&quot;‍♂️&quot;)); // int(17)
  var_dump(mb_strlen(&quot;‍♂️&quot;)); // int(5)
  </code></pre>
  <p>How can I make sure my backend count my string length exactly as my frontend?</p>