PHP code example of zonuexe / stringwidth
1. Go to this page and download the library: Download zonuexe/stringwidth library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
zonuexe / stringwidth example snippets
\Teto\StringWidth::asSingle('ABC'); //=> 3
\Teto\StringWidth::asDouble('ABC'); //=> 3
\Teto\StringWidth::asSingle('☆☆☆'); //=> 3
\Teto\StringWidth::asDouble('☆☆☆'); //=> 6
\Teto\StringWidth::asSingle('도서관'); //=> 6
\Teto\StringWidth::asDouble('도서관'); //=> 6