In a session context with a lot of session vars, you can use magic methods
__set and __get :
class s{
private function __set($property, $value){
$_SESSION[$property] = $value ;
}
private function __get($property){
return $_SESSION[$property
Hi,
some pretty natives php functions exists to do the job :
var_export — Outputs or returns a parsable string representation of a variable
debug_zval_dump — Dumps a string representation of an internal zend value to
output
var_dump — Dumps information about a variable
print_r — Prints human-read
2 matches
Mail list logo