I wrote that function in a couple of minutes, haven't dedicated much time to
think of the efficiency of it, you are definitely right but I'm pretty much
sure that for 10 segments URLs you won't feel the difference. If you want I
can benchmark it.
Thanks for the heads up.
--
Nitsan
On Mon, Jun 8,
On , nit...@binnun.co.il advised:
>> function nitsanush($v)
>> {
>> $a = explode("/", $v);
>> if (sizeof($a) > 2)
>> {
>> $b = $a;
>> unset($b[0]);
>> return array($a[0] => nitsanush(implode("/", $b))); }
>> else
>> {
>> return array($a[0]
; > HTH,
> >> > Nitsan
> >> >
> >> > On Sun, Jun 7, 2009 at 2:36 PM, דניאל דנון
> >> > wrote:
> >> >>
> >> >> its related to that but I'm building a kind of "supposed" urls for
> >> >> certain
ings... Its complicated to explain,
>> >> But I need to turn
>> >> print_r($var); // alpha/beta/gamma
>> >>
>> >> $var = somefunction($var);
>> >>
>> >> print_r($var); // array("alpha" => array("
somefunction($var);
> >>
> >> print_r($var); // array("alpha" => array("beta" => "gamma"))
> >>
> >>
> >> On Sun, Jun 7, 2009 at 2:33 PM, Nitsan Bin-Nun
> wrote:
> >> > I think that he is talking about u
ng :O
>> >
>> > On Sun, Jun 7, 2009 at 2:04 PM, Angus Mann wrote:
>> >
>> >> ??? Huh ???
>> >>
>> >>
>> >> - Original Message - From: "דניאל דנון"
>> >> To: "PHP General List"
>
, Jun 7, 2009 at 2:04 PM, Angus Mann wrote:
> >
> >> ??? Huh ???
> >>
> >>
> >> - Original Message - From: "דניאל דנון"
> >> To: "PHP General List"
> >> Sent: Sunday, June 07, 2009 8:11 PM
> >> Subject: [
wrote:
>
>> ??? Huh ???
>>
>>
>> - Original Message - From: "דניאל דנון"
>> To: "PHP General List"
>> Sent: Sunday, June 07, 2009 8:11 PM
>> Subject: [PHP] alpha/beta/gamma TO $var['alpha']['beta'] = 'ga
:D
I think that he is talking about uri rewriting :O
On Sun, Jun 7, 2009 at 2:04 PM, Angus Mann wrote:
> ??? Huh ???
>
>
> - Original Message - From: "דניאל דנון"
> To: "PHP General List"
> Sent: Sunday, June 07, 2009 8:11 PM
> Subject: [PHP
??? Huh ???
- Original Message -
From: "דניאל דנון"
To: "PHP General List"
Sent: Sunday, June 07, 2009 8:11 PM
Subject: [PHP] alpha/beta/gamma TO $var['alpha']['beta'] = 'gamma'
I have encountered a problem when trying to turn
I have encountered a problem when trying to turn
--
Use ROT26 for best security
12 matches
Mail list logo