Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $texto = 'Ex#em$!plo uti@!lizando r3gex';
- echo preg_replace('/[^w]/', '', $texto);
- $chars = array('!', '@', '#');
- echo str_replace($chars, '', 'oh! texto com # e @ para apagar!');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement