CodeIgniter Forums
uri_to_assoc() on given url - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: uri_to_assoc() on given url (/showthread.php?tid=46640)



uri_to_assoc() on given url - El Forum - 11-09-2011

[eluser]Raymondddd[/eluser]
Hi guys,

I was wondering if there is a function to do the same as uri_to_assoc(), but on a given url (as a parameter) and not the current_url().

So, uri_to_assoc is converting example.com/user/search/name/joe/location/UK/gender/male to:
Code:
* array (
  *   name => joe
  *   location => UK
  *   gender => male
  *   )

I like to get the same results for a given URL.

Anyone?

Thanks a lot!

Raymond