preg_replace question...
Posted: Thu Nov 12, 2009 7:53 am
Here's the code:
For the most part, I THINK it's working but the email addresses won't show at the end due to something (not being escaped?).
I was wondering if someone could explain why they're hidden? It's driving me bonkers.
Edit: Sorry, I'm awake now and realized how more information could be used (thank God for coffee). The "names.txt" has email addresses in it and in Firefox, the email addresses are hidden from the page. If "View Source" is done, they're there. What's up with this? Is this an issue with Firefox / browser-in-general?
Code: Select all
<?php
$exp = "/[0-9]{9}/";
$rep = '__________';
$file = file_get_contents('names.txt');
$final = preg_replace($exp,$rep,$file);
print_r($final);
?>I was wondering if someone could explain why they're hidden? It's driving me bonkers.
Edit: Sorry, I'm awake now and realized how more information could be used (thank God for coffee). The "names.txt" has email addresses in it and in Firefox, the email addresses are hidden from the page. If "View Source" is done, they're there. What's up with this? Is this an issue with Firefox / browser-in-general?