So in the following instance, what do we replace $foo with ? is it $content ?
<?php function autolink_test($foo)
{
// Modified from: http://www.totallyphp.co.uk/code/convert_links_into_clickable_hyperlinks.htm
$foo = eregi_replace('(((f|ht){1}tp://)[-a-zA-Z0-9@:%_\+.~#?&//=]+)', '<a href="\\1">\\1</a>', $page_content1);
if( strpos($foo, "http") === FALSE )
{
$foo = eregi_replace('(www.[-a-zA-Z0-9@:%_\+.~#?&//=]+)', '<a href="http://\\1" target=_blank rel=nofollow >\\1</a>', $page_content1);
}
else
{
$foo = eregi_replace('([[:space:]()[{}])(www.[-a-zA-Z0-9@:%_\+.~#?&//=]+)', '\\1<a href="http://\\2" target=_blank rel=nofollow >\\2</a>', $page_content1);
}
$foo = eregi_replace('([_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,3})', '<a href="mailto:\\1">\\1</a>', $page_content1);
return $foo;
}
?>