Duplicate " characters when creating links with preg_replace()
So, the goal here is for a script to turn a ten-digit phone number into a hyperlink, as follows.
Testing out just the regex would imply that the following find/replace should work:
However, if $val=1234567890, the following function:
Gives the following result:
Basically, every " in the $replacement string gets doubled.
Any bright ideas on ways around this?
|All times are GMT +1. The time now is 03:12 AM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.