Justin Carmony wrote:
The recursion warning happens because in theory, print_r goes through a prints out the values for an object. So it prints out everything in A, which includes a reference to B. So it prints out everything in B, which includes an A. So it prints everything in A, which has a B.....

So that function would run recursively. Have two objects with reference to each other isn't a problem, just that the print_r function will throw those recursions errors.

Note that this message isn't a recursion error... there's no problem here, it's more of a notice. It's more like using <snip> in an email thread. You really don't need to know what's under that *RECURSION*, since you already see it one level up (by definition of recursion).

--
justin
http://justinhileman.com

_______________________________________________

UPHPU mailing list
[email protected]
http://uphpu.org/mailman/listinfo/uphpu
IRC: #uphpu on irc.freenode.net

Reply via email to