4 ms·
How ? ~ php --version PHP 7.2.17-0ubuntu0.19.04.1 (cli) (built: Apr 18 2019 18:01:25) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.2.
by guggle 7y ago
How ?
~ php --version
PHP 7.2.17-0ubuntu0.19.04.1 (cli) (built: Apr 18 2019 18:01:25) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.2.17-0ubuntu0.19.04.1, Copyright (c) 1999-2018, by Zend Technologies
~ cat test.php
<?php
echo strlen("ùé");
echo "\n";
echo mb_strlen("ùé");
echo "\n";
~ php test.php
4
2
- CiPHPerCoder 7y agoThe answer is: Composer + Packagist. There's almost certainly a library that handles it in a sane and transparent manner for you so you don't have to deal with the pain.