Welcome Guest, Not a member yet? Register   Sign In
URI - getting segments into associative array with user-defined keys
#3

[eluser]markowe[/eluser]
What about just expanding uri_to_assoc to take an array as an extra optional parameter, like

Code:
uri_to_assoc (3, array('name', 'location', 'gender'))

so that if this optional array is specified then these keys get assigned to the URI values, if not then the default behaviour is applied. Though that's a bit messy because of the different size URIs depending on the case. Perhaps just another function in the URI class called uri_to_userassoc, or something, which would work as above?


Messages In This Thread
URI - getting segments into associative array with user-defined keys - by El Forum - 12-05-2009, 09:06 AM



Theme © iAndrew 2016 - Forum software by © MyBB