- var_dump: documentation ( source)
<?php
class Foo {
public function display()
{
var_dump(Form::initPost());
var_dump(Form::getAll());
}
}
class Form
{
private static $value = array();
public static function initPost()
{
foreach($_GET as $key=>$value)
self::$value[$key] = $value;
}
public static function getAll()
{
return self::$value;
}
}
$f = new Foo;
$f->display();