jason310771 Posted March 27, 2011 Share Posted March 27, 2011 Please can someone advise how I remove the | characters from a string? I tried the following but get errors that... Warning: preg_replace() [function.preg-replace]: No ending delimiter '|' $value = preg_replace("|", "", $value); Quote Link to comment Share on other sites More sharing options...
silkfire Posted March 27, 2011 Share Posted March 27, 2011 You don't need regex here just use normal replace: $value = str_replace('|', '', $value); Quote Link to comment Share on other sites More sharing options...
jason310771 Posted March 27, 2011 Author Share Posted March 27, 2011 thank you 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.