Welcome Guest, Not a member yet? Register   Sign In
Dealing with empty segments
#1

[eluser]furnak[/eluser]
Hi all,

I'm having a few problems with empty segments,

say I have a URI that goes

name/john/age/23/cat//dog//

how can I have it so that using,

$data = $this->uri->uri_to_assoc();

I end up with an array looking like

name => john
age => 23
cat => []
dog => []

instead of what I'm currently getting of,

name => john
age => 23
cat => dog

Thanks in advance


Messages In This Thread
Dealing with empty segments - by El Forum - 04-14-2010, 03:40 PM
Dealing with empty segments - by El Forum - 04-14-2010, 04:15 PM
Dealing with empty segments - by El Forum - 04-14-2010, 05:01 PM
Dealing with empty segments - by El Forum - 04-15-2010, 12:10 AM
Dealing with empty segments - by El Forum - 04-15-2010, 02:36 AM



Theme © iAndrew 2016 - Forum software by © MyBB