Skip to content
Advertisement

PHP str_replace with array() not working ? (have example)

[code]

JavaScript

[run]

JavaScript

I want to remove brackets from this text, but it not working?

Advertisement

Answer

This code removes parentheses (, ) from the following string:

(test) i'm test"

JavaScript

The results after using the str_replace() function:

test i'm test"

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement