kevincro Posted April 17, 2008 Share Posted April 17, 2008 I get the following error which points to the following line of code. Any ideas? Warning: preg_replace() [function.preg-replace]: Compilation failed: reference to non-existent subpattern at offset 5 in public_html/view.php on line 61 foreach($card as $key=>$cards) $hand = preg_replace($key, $smiley_img, $hand); Link to comment https://forums.phpfreaks.com/topic/101485-help-with-an-error-code/ Share on other sites More sharing options...
mrdamien Posted April 17, 2008 Share Posted April 17, 2008 Does your $key variable have the forward slashes? $card = array( "/example/" => "bleh", "/pizza/" => "test" ); Link to comment https://forums.phpfreaks.com/topic/101485-help-with-an-error-code/#findComment-519173 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.