|
|
|
|
|
|
|
|
$email = preg_replace('#&([A-za-z])(?:acute|cedil|caron|circ|grave|orn|ring|slash|th|tilde|uml);#', '\1', $email); |
|
|
$email = preg_replace('#&([A-za-z])(?:acute|cedil|caron|circ|grave|orn|ring|slash|th|tilde|uml);#', '\1', $email); |
|
|
$email = preg_replace('#&([A-za-z]{2})(?:lig);#', '\1', $email); // pour les ligatures e.g. 'œ' |
|
|
$email = preg_replace('#&([A-za-z]{2})(?:lig);#', '\1', $email); // pour les ligatures e.g. 'œ' |
|
|
$email = preg_replace('#&[^;]+;#', '', $email); // supprime les autres caractères |
|
|
$email = preg_replace('#&[^;]+;#', '', $email); // supprime les autres caractères |
|
|
|
|
|
$email = str_replace(' ','',$email) ; |
|
|
$u->email = $email ; |
|
|
$u->email = $email ; |
|
|
|
|
|
|
|
|
$u->telephone = '0600000000' ; |
|
|
$u->telephone = '0600000000' ; |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
$u->save(); |
|
|
$u->save(); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
$commandes = Commande::find() |
|
|
$commandes = Commande::find() |