<?php$string = "PAÇOCA";echo mb_detect_encoding($string) . "\n";echo mb_strlen($string) . "\n";echo mb_substr($string, 0, 3);
Standard input is empty
UTF-8 6 PAÇ
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!