Guest User

Untitled

a guest
Jun 23rd, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. $replace = array(" ",".",",","'","@");
  2. $newString = str_replace($replace,"_",$join);
  3.  
  4. $join = "the original string i'm parsing through";
  5.  
  6. $newString = preg_replace('/[^a-z0-9]/i', '_', $join);
  7.  
  8. preg_replace('/[^a-zA-Z0-9]/', "_", $join);
  9.  
  10. preg_replace('/W/', '_', $join);
Add Comment
Please, Sign In to add comment