是否有任何PHP方法从字符串中删除新的行字符?
$str =" Hi there ";
我的字符串在'Hi'和'there'之间包含一个新行char,我希望输出为"Hi there".我不想使用正则表达式.
php
php ×1