Using 'file_get_contents' to bring in a list of Japanese characters
from a text file I drop them into a array
$array[0] // 大-表
Next array's which contain "-" are split into two var's
It is working BUT
only when I hardcode utf-8 characters
example:
$utf8 = "$array[0]"; // dont work
$utf8 = "大-表"; // works
if(($n = strpos($, '-')) !== false) {
$var1 = substr($utf8, 0, $n-1);
$var2 = substr($utf8, $n);
$var1 = str_replace ("-", "", $var1);
$var2 = str_replace ("-", "", $var2);
echo("$var1."<br>");
echo("$var2."<br>"); }
//output
大
表
Im able to work with the utf-8 array's in other scripts using str_replace
however this function I guess is in another format