how to check name validation in php code example
Example 1: validate names regex php
preg_match("/^([a-zA-Z' ]+)$/","Given_Name");
Example 2: php validate name
if(preg_match("/^([a-zA-Z' ]+)$/",$name)){
retun true; // is validate name
}
preg_match("/^([a-zA-Z' ]+)$/","Given_Name");
if(preg_match("/^([a-zA-Z' ]+)$/",$name)){
retun true; // is validate name
}