Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.
One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.
<?php $uid = 1; $cid = 1; $url = "<p>Therefore, the regex should take these URLs: <a href="http://www.emarketbuilders.com">URL 1</a> <a href="http://www.emarketbuilders.com/">URL 2</a><a href="http://www.emarketbuilders.com/splash_page.php">URL 3</a></p> $result = preg_replace('|href="http://www.emarketbuilders.com/?"|', 'href="http://www.emarketbuilders.com/?uid='.$uid.'&cid='.$cid.'"', $url); // And turn them into: // http://www.emarketbuilders.com // http://www.emarketbuilders.com/ // http://www.emarketbuilders.com/splash_page.php echo $result; ?>
Join the community of 500,000 technology professionals and ask your questions.