Welcome Guest, Not a member yet? Register   Sign In
Passing an array through GET while using url_to_assoc
#9

[eluser]jhyland[/eluser]
This would also entail editing the assoc_to_uri function for redirecting to the uri.

Code:
function assoc_to_uri($array)
{
  $temp = array();
  foreach ($array as $key => $val)
  {
   if(is_array($val))
   {
    foreach($val as $subkey => $subval)
    {
     $temp[] = $key;
     $temp[] = $subval;
    }
   }
   else
   {
    $temp[] = $key;
    $temp[] = $val;
   }
  }
  return implode('/', $temp);
}


Messages In This Thread
Passing an array through GET while using url_to_assoc - by El Forum - 08-07-2012, 01:25 AM
Passing an array through GET while using url_to_assoc - by El Forum - 08-07-2012, 03:28 AM
Passing an array through GET while using url_to_assoc - by El Forum - 08-07-2012, 11:04 AM
Passing an array through GET while using url_to_assoc - by El Forum - 08-07-2012, 11:29 AM
Passing an array through GET while using url_to_assoc - by El Forum - 08-09-2012, 02:01 PM
Passing an array through GET while using url_to_assoc - by El Forum - 08-09-2012, 03:22 PM
Passing an array through GET while using url_to_assoc - by El Forum - 08-09-2012, 04:28 PM
Passing an array through GET while using url_to_assoc - by El Forum - 08-09-2012, 05:53 PM
Passing an array through GET while using url_to_assoc - by El Forum - 08-10-2012, 06:35 PM
Passing an array through GET while using url_to_assoc - by El Forum - 08-19-2012, 07:58 PM



Theme © iAndrew 2016 - Forum software by © MyBB