Trim characters


/ Published in: PHP
Save to your folder(s)

Looks for $chars in $subject and removes any preceding and succeeding whitespace from the provided characters. It works much like trim(), except it trims characters instead of the string itself.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.