Codice PHP:
public function _nomeCognome($nomGogn)
{
$this->nomGogn = trim($nomGogn);
if( !preg_match("/^[A-Za-z]{2,15}'+$/i", $this->nomGogn) )
{
return false;
}
else
{
return true;
}
return false;
}
Codice PHP:
public function _nomeCognome($nomGogn)
{
$this->nomGogn = trim($nomGogn);
if( !preg_match("/^[A-Za-z]{2,15}'+$/i", $this->nomGogn) )
{
return false;
}
else
{
return true;
}
return false;
}