- token_get_all: documentation ( source)
- print_r: documentation ( source)
<?php
$sourceCode = "
This is a test.
<?php
\$url = 'https://bancontact.girogate.be/bi/t2bc?tx=396084307&rs=r3rG2gnT2CVPLG7R9llh0fZr0d1Y4da0&c';
\$parts = parse_url(\$url);
if (isset(\$parts['query']))
{
parse_str(\$parts['query'],\$query);
echo '<pre>';
print_r(\$query);
echo '</pre>';
}
";
$tokens = token_get_all($sourceCode);
print_r($tokens);
This script was stopped while abusing our resources