sniped22 Posted May 29, 2007 Share Posted May 29, 2007 $ph = "CheeseMan" $usernam = substr($pokerhand, 9, $pos2-9); $username ="Dealt to <font color='blue'>$usernam:</font>"; echo preg_replace($username1, $username, $ph); produces: Warning: preg_replace() [function.preg-replace]: Empty regular expression Any ideas why? Quote Link to comment Share on other sites More sharing options...
Wildbug Posted May 29, 2007 Share Posted May 29, 2007 Well, you haven't defined $username1 in the snippet of code you've provided. If you haven't defined it elsewhere, then that's a good reason for it to be empty. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.