Skip to content

Instantly share code, notes, and snippets.

@dandelionmood
Created March 27, 2014 14:07
Show Gist options
  • 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