Si la valeur du nom contient de l'espace en php
if ($str == trim($str) && strpos($str, ' ') !== false) {
echo 'has spaces, but not at beginning or end';
}
Ankur
if ($str == trim($str) && strpos($str, ' ') !== false) {
echo 'has spaces, but not at beginning or end';
}
ctype_space(" ") //returns true
ctype_space(" a ") //returns false