0
which are php predefined functions
6 Answers
+ 1
like in java script we give validation for form fields like that in php is there any predefined validations are there
+ 1
@aditya Kumar thank you
+ 1
You can define the functions for validations as per your requirements in a seperate php file,and include in various php files and use it.Hence it becomes a predefined function.For example consider below validation function,u can define it in a seperate file and use it in other php files where you need email vaidations.
$email = input($_POST["email"]);
if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
$emailErr = "Invalid format and please re-enter valid email";
}
0
no I am not asking that php validations
0
in 1 interview asked me that which are predefined validations in php
0
I am also not understanding the que