I want to make this by the preg_replace
:
$web = 'example.com';
I want the preg_replace make it http://www.example.com
and if it http://example.com
no problem. It should add http://
in it found in the URL.
I want do that is http://
not exist.