Re: [PHP] Variable Troubleshooting Code

2012-01-07 Thread David Courtin
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

Re: [PHP] advise on simplfying session usage

2012-01-13 Thread David Courtin
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