×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Peter Wendel
Added: May 14, 2015 3:53 PM
Views: 2
Tags: no tags
Prüft, ob ein String unerwünschte Zeichen enthält (regex).
  1. $check = false;
  2.         preg_match($pattern, $string, $matches);
  3.         if($matches[0] == $string){
  4.             $check = true;
  5.         }