Quantcast
Channel: PHP Freaks: PHP Help
Viewing all articles
Browse latest Browse all 13200

preg_replace

$
0
0

hi all, i am a newbie member of php world,

i need to learn the answer of a simple question

 

why "preg_replace('/\[url="(%5BA-Za-z0-9\-._~:\/?#%5B\%5D@!$@&()\'*+,;=%%5D+)"\](.+)\[\!url\]/', '<a href="$1">$2</a>', $string)" expression adds my own site address at the beginning of the link created?

 

such as http://www.mysite.com/www.thesitepreg_replace_created.com


Viewing all articles
Browse latest Browse all 13200

Trending Articles