@ 2016-08-19T16:07:21Z <?php
var_dump(grapheme_strlen("\r\n"));
var_dump(grapheme_substr(implode("\r\n", ['abc', 'def', 'ghi']), 5));
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Output for 7.0.20 , 7.1.0 - 7.1.20 , 7.2.0 - 7.2.33 , 7.3.16 - 7.3.31 , 7.4.0 - 7.4.32 , 8.0.0 - 8.0.12 , 8.0.14 - 8.0.30 , 8.1.0 - 8.1.31 , 8.2.0 - 8.2.26 , 8.3.0 - 8.3.15 , 8.4.1 - 8.4.2 int(1)
string(7) "ef
ghi"
Output for 7.3.32 - 7.3.33 , 7.4.33 , 8.0.13 Fatal error: Uncaught Error: Call to undefined function grapheme_strlen() in /in/ntaui:3
Stack trace:
#0 {main}
thrown in /in/ntaui on line 3
Process exited with code 255 . Output for 5.6.0 - 5.6.25 , 7.0.0 - 7.0.10 int(2)
string(8) "def
ghi"
preferences:dark mode live preview
52.69 ms | 408 KiB | 5 Q