RosettaCodeData/Task/String-length/PHP/string-length-3.php

2 lines
71 B
PHP

$length = grapheme_strlen('Hello, world!'); // UTF-8 encoding required