I have an HTML code
<\/p>\n
<\/p>\n"
I need to get the image address inside SRC, and it's not something \/\/...
After I used the regular expression
$preg = '//i';
The returned content is
"\\\"http:\/\/localhost\/wp-content\/uploads\/2016\/02\/20160212050312_659.png"
And what I need is a clean picture address ... http://localhost/wp-content/uploads/2016/02/20160212050312_659.png
What am I going to do.
Reply content:
I have an HTML code
<\/p>\n
<\/p>\n"
I need to get the image address inside SRC, and it's not something \/\/...
After I used the regular expression
$preg = '//i';
The returned content is
"\\\"http:\/\/localhost\/wp-content\/uploads\/2016\/02\/20160212050312_659.png"
And what I need is a clean picture address ... http://localhost/wp-content/uploads/2016/02/20160212050312_659.png
What am I going to do.
http://php.net/manual/en/function.stripcslashes.php