PHP valider le nom

 if(preg_match("/^([a-zA-Z' ]+)$/",$name)){
   retun true; // is validate name
  } 
Mohamed Sami khiari