• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.