A CAPTCHA is a program that can generate and grade tests that humans can pass but current computer programs cannot. If you want add that certain criteria for user in your PHP form you can go through the following file.
Click here
It is the simplest method you can add a captcha to your form. This is the file where I have put the directions to add a captcha.
Moreover the following video will certainly help you.