I’m using trim() to get rid of characters from a string, but I get the warning message in the question title. How can I get rid of the warning, I’ve tried arranging the values in several different ways.
Code:
trim($temp2_description[0], "\xA0..\x0d..\x0a..\x09");
Also tried:
trim($temp2_description[0], "\x09..\x0a..\x0d..\xA0");
Hex values of the part of the string I want to trim:
a0
a0
a0
a0
a0
0d
0a
09
09
09
09
09
09
09
a0
0d
0a
09
09
09
09
09
How can I specify the trim function so it doesn’t return the warning message in my question title?
Your ranges are incorrect. They have to be
start..endstart..endstart..end. You’ve gotstart..end..end..end.