How to Quickly Apply Many PHP Functions
Posted by Karthik Viswanathan on Sun 27 September, 2009 at 20:33:15 · Tags: php
Let’s say that you have just created a new company and are in need of a contact form. For this form, you want to let the user provide a name, e-mail (so you can get back to them), and a message. In order to make sure you are receiving valid content, it is vital that you check and manipulate user input in order to meet your needs.

Requirements
For example, what if you wanted the message to be in a strict format, like so:
Every Word In A Sentence Must Be Capitalized. There Must Be No Html Tags And The Rest Of The Letters Have To Be Lower Case. In Addition, No Excess Whitespace Must Exist On Each End Of The String.





5