This tutorial shows how to validate data in PHP, with a simple example of validating a form.
Learn how to test PHP code with an example: Understand the basics of unit testing & debugging to ensure code quality.