0

which are php predefined functions

8th Dec 2016, 1:23 PM
ahya neha
ahya neha - avatar
6 Answers
+ 1
like in java script we give validation for form fields like that in php is there any predefined validations are there
8th Dec 2016, 1:36 PM
ahya neha
ahya neha - avatar
+ 1
@aditya Kumar thank you
8th Dec 2016, 2:08 PM
ahya neha
ahya neha - avatar
+ 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"; }
20th Dec 2016, 3:01 PM
Sanjaydeep G
Sanjaydeep G - avatar
0
no I am not asking that php validations
8th Dec 2016, 1:35 PM
ahya neha
ahya neha - avatar
0
in 1 interview asked me that which are predefined validations in php
8th Dec 2016, 2:00 PM
ahya neha
ahya neha - avatar
0
I am also not understanding the que
8th Dec 2016, 2:00 PM
ahya neha
ahya neha - avatar