我从MYSQL数据库路径值中检索它们以在HTML页面中显示它们,并且每个“\ 20”都会转换为空(消失)。 例如“I:\ images \ 2012-10-07”变为“I:\ images12-10-07”。
我找到了一个硬编码解决方案:“str_replace(”\\“,”\“,htmlspecialchars($ path))”但从逻辑上讲,必须有一些通用的。
对于这两个明确的任务,我需要两个明确的功能:
a. put_this_damn_string_in_database_undistorted($string), and
b. get_that_damn_string_from_database_undistorted($string).
以便安全地处理任何字符串而不管内容是什么。 意外的问题不断出现,这就像疯狂:-D 任何帮助非常感谢,请。