Advertisement
jiue123

preg_replace('/[^a-z0-9]+/i','',$str);

Sep 29th, 2014
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.17 KB | None | 0 0
  1. preg_replace('/[^a-z0-9]+/i','',$str);
  2. --> hàm này l loại bỏ tất cả các ký tự không phải là chữ (a-z và A-Z) hoặc số (0-9) ra khỏi chuỗi $str
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement