- mb_strlen: documentation ( source)
- strlen: documentation ( source)
<?php
namespace foo{
$t = 'テキスト';
echo strlen($t);
echo strlen($t);
if(true){ function strlen($t){return mb_strlen($t);} }
echo strlen($t);
echo strlen($t);
}