Genera Popup Validare url
Aug 23

La seguente funzione elimina gli spazi all’inizio e alla fine di una stringa

function clearSpaces($string, $clear_enters = true) {
 
  $pattern = ($clear_enters == true) ? ("/s+/") : ("/[ t]+/");
 
  return preg_replace($pattern, " ", trim($string));
 
}

(Nessun voto)
Loading ... Loading ...

Inserisci il tuo Commento:

This is a captcha-picture. It is used to prevent mass-access by robots. (see: www.captcha.net)

You must read and type the 5 chars within 0..9 and A..F, and submit the form.

  

Oh no, I cannot read this. Please, generate a