trim() and stripslashes() Demonstration

Without trim: ' Hello World! '
With trim: 'Hello World!'

Original: 'Hello World!'
Trim specific chars: 'llo Worl'

With slashes: Who\'s Peter Griffin?
Without slashes: Who's Peter Griffin?

Next: Form Validation Example