I’m trying to remove from a string variable, a character that appeared between spaces, I used some PHP functions to do it like str_replace but nothing happens.
An example below, I show it through var_dump PHP function :
string '�I�N�S�E�R�T� �[�d�b�o�]�
If anyone can tell me a way to do this, I’d be grateful.
You could try:
Demo. See: filter-var and filter.filters.sanitize