![]() |
|
|||
|
If you only want to unset the $board['id'] value in forum_updates, that should work. If you can't get it to work, try getting rid of the if... statement and the $board variable.
[PHP] $session = new Zend_Session_Namespace('session'); $session->forum_updates = array(); $session->forum_updates['id'] = 14; var_dump($session->forum_updates['id']); // outputs int(14) unset($session->forum_updates['id']); var_dump($session->forum_updates['id']); // outputs undefined var_dump($session->forum_updates); // outputs array(0) { } [/PHP] If you want to unset all of forum_updates then: [PHP] $session->__unset('forum_updates'); [/PHP] |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
| Designed by: Miner Skinz |
Powered by vBulletin® Version 3.8.4 Copyright ©2000 - 2010, Jelsoft Enterprises Ltd. Search Engine Friendly URLs by vBSEO 3.1.0 |
![]() |