form values PHP5
import_request_variables("G", "user_");
if (isset($user_testy)) {
echo 'The value of the \'testy\' field is:' . $user_testy;
}
12364 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
class Object { function __sleep() { return array_keys( (array)$this ); } } class BaseClass extends Object { private $foo; private $dbh; // some resource, like a database handler function __sleep() { unset($this->dbh); return parent::__sleep(); } } class SubClass extends BaseClass { private $bar; function __sleep() { return parent::__sleep(); } }