最佳答案
我试图得到一个字符串的前10个字符,并希望用 '_'替换空格。
是的
$text = substr($text, 0, 10);
$text = strtolower($text);
但我不知道下一步该怎么办。
我要绳子
这是字符串测试。
成为
这就是