Jump to content

php and trim


eva21

Recommended Posts

Then you must have some other error in your code or the B is actually present but not visible (have you done a "view source" in your browser?), because the posted code does give: Blue (Remember)

 

However, using trim() that way will give unexpected results because it will trim every "R", "o" "s", "e", " ", and "-" from the start and end of the string. You should probably look at using str_replace()

Link to comment
https://forums.phpfreaks.com/topic/158265-php-and-trim/#findComment-834704
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.