There is a word Phenic and it is necessary that Pate
$a = "Финики"; function($a,1) If the mb_string extension is available to you, you can do the following:
<?php $a = "Финики"; echo mb_substr($a, 0, -1); The mb_substr() function returns the substring of the first argument, the second argument is the position from which the substring begins (in our case, the beginning), and the second is the length of the substring (the current length of the string minus one character).
Source: https://ru.stackoverflow.com/questions/530602/
All Articles
substr("Финики", 0, -1)- MasterAlex