Welcome Guest, Not a member yet? Register   Sign In
Multi-Dimensional Array Help
#8

[eluser]jcargilo[/eluser]
@jwindhorst -

Thanks for taking the time to reply. I'm always objective to learning new "best method" techniques so I have given your suggestion some thought. First off, I tried to write it like you suggested and received an illegal offset type error. Other than that minor inconvenience, I get what you're saying about the readability. Rather than deciphering the PBR variable, your method creates a new array (because the $data['categories'] array is already set) to store both the category details and subset of items. I definitely think, in this case, it's a personal preference and find that it doesn't read any better or worse than the PBR method. Perhaps it's my background in C#, but I simply prefer that method.

However, I'll continue to mull it over (and get it working) and it might just make more sense to do. Thanks again Smile.


Messages In This Thread
Multi-Dimensional Array Help - by El Forum - 03-21-2012, 04:57 PM
Multi-Dimensional Array Help - by El Forum - 03-21-2012, 08:05 PM
Multi-Dimensional Array Help - by El Forum - 03-21-2012, 08:07 PM
Multi-Dimensional Array Help - by El Forum - 03-21-2012, 08:44 PM
Multi-Dimensional Array Help - by El Forum - 03-21-2012, 08:51 PM
Multi-Dimensional Array Help - by El Forum - 03-21-2012, 10:58 PM
Multi-Dimensional Array Help - by El Forum - 03-22-2012, 09:23 AM
Multi-Dimensional Array Help - by El Forum - 03-22-2012, 01:43 PM
Multi-Dimensional Array Help - by El Forum - 03-22-2012, 02:03 PM



Theme © iAndrew 2016 - Forum software by © MyBB