Zend Session Namespace, get key of defined array -
I am using some Zend_Session_Namespace objects to save some data, most of these data or multidimensional arrays I'm looking for That I'm missing a part of Z_Session_Namespace argument or I do not want to use them for them.
For example, I store a CD id with my simplified list. / P>
$ session = new Zend_Session_ namespace ('cd-track-list'); $ Session- & gt; {123} = Array ('first track', 'second track'); After this, I want to loop the session name space and I need to know the ID of the CD and its tracklist. ($ session as $ key = & gt; $ value is $ 1 -> - but should be $ 123 $ value is the array ('first track', ' Second track ');} $ value is correct, but the key of $ is not set here. So my question is, how can I get a CD ID when I
This will be done with your integer index Will not work, this problem is put in "0". "Zend_Session_Namespace.php" (__ Set) $ name = (string) $ name; You can use:
< Code> $ session = new Zend_Session_Namespace ('cd-track-list'), $ session-> a = array ('first track', 'second track'); foreign currency ($ session $ key => $ The value should be {// $ of 0 -> but the value should be 123 / $ array ('first track', 'second track');}
Comments
Post a Comment