str::length($str)

An UTF-8 safe version of strlen()

  • $str (string)
  • return (string)

Example

<?php
$string = 'kirby';
echo str::length($string);
// 5