Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Faysal Ahamed devfaysal

🏠
Working from home
View GitHub Profile
@devfaysal
devfaysal / email_scrape.php
Created Sep 10, 2018 — forked from aramk/email_scrape.php
Scrape emails from a given URL in PHP. Using it to invite people to Google+, for now :)
View email_scrape.php
<?php
$url = 'http://computerandu.wordpress.com/2011/06/29/how-to-get-google-invite/';
$emails = scrape_email($url);
echo implode($emails, ' ');
function scrape_email($url) {
if ( !is_string($url) ) {
return '';
}