|
Can anyone enlighten me what does thid code do? $text=preg_replace('/\/i', '', $text); |
|
If you'll set your
Since backslash is an escape character, it treated the forward slash after the backslash as an escape to the forward slash character. Which means the regex forgot to specify what character to escape (instead of the forward slash) or it forgot to include the ending delimiter '/' while really escaping the forward slash character. The |