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? Link to comment https://forums.phpfreaks.com/topic/53335-var/ 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. Link to comment https://forums.phpfreaks.com/topic/53335-var/#findComment-263593 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.