I have a list of special chars separated by |, lets say $chars = "@ | ; | $ |";
And I have an string, let’s say $stringToCut = 'I have @ list ; to Cut';
I want to remove from $stringToCut all chars in $chars.
How would I do that ?
Thx in advance
I would convert your list of characters to remove to an array and use
str_replace: