<?php
$a = trim($_GET['a']);
$file_name = '/tmp/' . $a;
$output = "Welcome, {$a} !!!";
$sql = "SELECT * FROM users WHERE name = " . $a;
echo $output;
print $output;
include $file_name;
mysqli_query($link, $sql);
?>
The above example will output
something similar to:
Warning: main() [echo]: Attempt to echo a string that might be tainted in /path/to/script.php on line 9
Warning: main() [print]: Attempt to print a string that might be tainted in /path/to/script.php on line 10
Warning: main() [include]: File path contains data that might be tainted in /path/to/script.php on line 11
Warning: main() [mysqli_query]: SQL statement contains data that might be tainted in /path/to/script.php on line 12