Skip to content

Instantly share code, notes, and snippets.

@dandelionmood
Created March 27, 2014 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dandelionmood/9808356 to your computer and use it in GitHub Desktop.
Save dandelionmood/9808356 to your computer and use it in GitHub Desktop.
Supprimer les caractères de contrôle à l'aide d'une expression régulière.
<?php
// Supprimer les caractères de contrôle
$texte = preg_replace('/[[:cntrl:]]/', '', $texte);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment