- print_r: documentation ( source)
<?php
print_r($_GET);
if($_GET["a"] === "") echo "a is an empty string\n";
if($_GET["a"] === false) echo "a is false\n";
if($_GET["a"] === null) echo "a is null\n";
if(isset($_GET["a"])) echo "a is set\n";
if(!empty($_GET["a"])) echo "a is not empty";
$offset = $argv[0];
// beware, no input validation!
$query = $offset;
echo $query;
$offset='beware';
$query = $offset;
echo $query;
?>