Guest User

Untitled

a guest
May 1st, 2012
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. PHP replace content in a string
  2. $item['menu_3'] = str_ireplace("T Shirts Vests", "TShirts", $item['menu_3']);
  3.  
  4. $item['menu_3'] = str_ireplace("T Shirts Vests","TShirts Vests", $item['menu_3']);
  5.  
  6. $str = "T Shirts Vests";
  7. $str[strpos($str, " ")] = '';
Advertisement
Add Comment
Please, Sign In to add comment