replaceall()PHP中如何将反斜杠()替换为正斜杠()在tp5框架的模板中可以使⽤这种形式{:函数(参数1,参数2,参数3)}//适⽤所有php函数及tp函数(如tp助⼿函数:url());{:str_replace('\\\\', '\\/', 需要替换的字符串)}    {:replaceAll('\\\\', '\\/', 需要替换的字符串)}
php⽂件中可以直接这样写:str_replace('\\', '/', 需要替换的字符串);