Am I misunderstanding the way trim works? In this example:
<?php $b = trim(" testing ", " teng"); echo $b; ?>
This prints sti, why? I thought the second parameter was a list of all characters you want removed from the string.
Trimming does not remove characters that are between characters that are not to be removed. If you actually want to remove, use str_replace() or preg_replace() with an empty replacement string.
Okay thanks for clearing that up.