We always need data validation once we are into programing. If we as a programmer failed to validate or sanitze the data it can lead to secuirity threads. But there is no need to worry about it any more becuase now we have a function which is a great help regarding this. Name of the function is filter_var().
we can validate several input with this function filter_var in php.
it can be string, float, int, url , email etc.
string sanitization , float validation, email validation and sanitization , url sanitization etc can be done by this function .
#PHPtutorialinHindi #PHPtutorial