- token_get_all: documentation ( source)
- print_r: documentation ( source)
<?php
print_r(token_get_all('<?php
function extractURL($url)
{
if (preg_match(\'#http://www.google.com/?$#i\', $url, $match)) {
return $match[1];
}
return null;
}'));