quotemeta 转义特殊字符

最后更新于:2022-04-02 02:28:17

[TOC] ## quotemeta 将转义 ``` . \ + * ? [ ^ ] ( $ ) ``` ``` $str = "Hello world. (can you hear me?)"; echo quotemeta($str); // Hello world\. \(can you hear me\?\) ```
';