Re: References
| From: | Stanislav Malyshev | Date: | Thu, 13 Jul 2000 17:48:58 +0000 |
| Subject: | Re: References | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-24479@lists.php.net to get a copy of this message | ||
KK>> keywords, organizing them in one or multiple tree structures,
KK>> referencing each keyword zero, once (common case) or multiple
KK>> times from different locations in the tree.
You shouldn't use PHP references for this. Assignment does the same
(actually, there are cases it does better) if you don't need to write it,
and I have hard time seeing why you need to write keywords.
KK>> Now, if you serialize the array of user selected keywords, this
KK>> array will contain pointers to the tree structure, which will in
KK>> turn contain pointers to the keywords from the keyword pool.
KK>> Serializing the selected keywords array will ultimately serialize
KK>> the complete tree structure and the keyword pool with it, as
KK>> they are linked and following the references will build the
KK>> serialization closure of the structure that is to be serialized.
KK>> This is called deep serializing.
Yes, but I do not see PHP references in use here. Why would you need them?
--
Stanislav Malyshev stas@zend.com
+972-3-6139665