How to do validation in php | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to do validation in php

pls give answer

8th Jul 2018, 2:34 AM
mohammadnoosayyed
2 Answers
+ 21
For custom validation check out these functions: isset(), empty(), is_null(), is_array() and etc. Modern frameworks like Symfony already have tools to ease the validation process.
8th Jul 2018, 6:28 AM
Igor Makarsky
Igor Makarsky - avatar
+ 1
What do you mean validation? Check for syntax errors?
8th Jul 2018, 3:53 AM
Ben Allen (Njinx)
Ben Allen (Njinx) - avatar