[PHP-DEV] [arrays] read arrays from a form

2002-06-13 Thread Àlex Camps
I have a example.html --- function add() { var res=0; for(x=0;x<3;x++)res=res+parseFloat(example.text[x].value); example.result.value=res; } --- and show.php --- PHP return the error: Notic

[PHP-DEV] [arrays] read arrays from a form

2002-06-13 Thread Àlex Camps
I have a example.html --- function add() { var res=0; for(x=0;x<3;x++)res=res+parseFloat(example.text[x].value); example.result.value=res; } --- and show.php --- PHP return the error: Notic

Re: AW: AW: [PHP-DEV] arrays

2001-05-16 Thread Stig Sæther Bakken
[Zeev Suraski <[EMAIL PROTECTED]>] > At 13:34 16/5/2001, Stig Sæther Bakken wrote: > >Acknowledged. But IMO the arrays will be either clearly continous or > >clearly associative/non-continous in 99.2% of the cases (Zeev > >statistics applied). > > I never claim to be accurate, I usually say 99%

Re: AW: AW: [PHP-DEV] arrays

2001-05-16 Thread Zeev Suraski
At 13:34 16/5/2001, Stig Sæther Bakken wrote: >Acknowledged. But IMO the arrays will be either clearly continous or >clearly associative/non-continous in 99.2% of the cases (Zeev >statistics applied). I never claim to be accurate, I usually say 99% :) > I think it's fine to keep treating an

Re: AW: AW: [PHP-DEV] arrays

2001-05-16 Thread Stig Sæther Bakken
Acknowledged. But IMO the arrays will be either clearly continous or clearly associative/non-continous in 99.2% of the cases (Zeev statistics applied). I think it's fine to keep treating an array as non-continous if there has ever been holes or string keys in it. - Stig [Zeev Suraski <[EMAIL

Re: AW: AW: AW: [PHP-DEV] arrays

2001-05-14 Thread Sterling Hughes
Radi >>Cc: Stig Sæther Bakken; Andrei Zmievski; [EMAIL PROTECTED] >>Betreff: Re: AW: AW: [PHP-DEV] arrays >> >> >>Ok, if we humor ourselves with this feature... What kind of >>behavior would >>you expect if a key gets deleted, and there are no longer associative

Re: AW: AW: [PHP-DEV] arrays

2001-05-14 Thread Zeev Suraski
It doesn't necessarily mean having to scrap the whole idea, just that we'd actually have to count elements, instead of just flagging. I'll try to think if there are any problems with this approach. Zeev At 02:57 15/5/2001, Andrei Zmievski wrote: >At 02:51 AM 5/15/01 +0300, Zeev Suraski wrote:

AW: AW: AW: [PHP-DEV] arrays

2001-05-14 Thread Harald Radi
001 01:52 > An: Harald Radi > Cc: Stig Sæther Bakken; Andrei Zmievski; [EMAIL PROTECTED] > Betreff: Re: AW: AW: [PHP-DEV] arrays > > > Ok, if we humor ourselves with this feature... What kind of > behavior would > you expect if a key gets deleted, and there are no longer a

Re: AW: AW: [PHP-DEV] arrays

2001-05-14 Thread Andrei Zmievski
At 02:51 AM 5/15/01 +0300, Zeev Suraski wrote: >Ok, if we humor ourselves with this feature... What kind of behavior >would you expect if a key gets deleted, and there are no longer >associative members in the array? Good point... any time savings on the extension side would be negated if the

AW: AW: AW: [PHP-DEV] arrays

2001-05-14 Thread Harald Radi
e. harald. > -Ursprüngliche Nachricht- > Von: Zeev Suraski [mailto:[EMAIL PROTECTED]] > Gesendet: Dienstag, 15. Mai 2001 01:52 > An: Harald Radi > Cc: Stig Sæther Bakken; Andrei Zmievski; [EMAIL PROTECTED] > Betreff: Re: AW: AW: [PHP-DEV] arrays > > > Ok, if we humor ourselv

Re: AW: AW: [PHP-DEV] arrays

2001-05-14 Thread Zeev Suraski
Ok, if we humor ourselves with this feature... What kind of behavior would you expect if a key gets deleted, and there are no longer associative members in the array? Zeev At 02:42 15/5/2001, Harald Radi wrote: > > Any XML-RPC implementation would benefit from seeing easily whether a > > valu

AW: AW: [PHP-DEV] arrays

2001-05-14 Thread Harald Radi
> Any XML-RPC implementation would benefit from seeing easily whether a > value is a continous pure numeric array, associative array or a mix. > It should be a trivial fix, and the performance difference is > negligible. > > - Stig > > [Zeev Suraski <[EMAIL PROTECTED]>] > > Why do you need it?

Re: AW: [PHP-DEV] arrays

2001-05-14 Thread Andrei Zmievski
At 06:49 PM 5/14/01 -0400, Stig Sæther Bakken wrote: >Any XML-RPC implementation would benefit from seeing easily whether a >value is a continous pure numeric array, associative array or a mix. >It should be a trivial fix, and the performance difference is >negligible. WDDX would benefit from it

Re: AW: [PHP-DEV] arrays

2001-05-14 Thread Stig Sæther Bakken
h a flag ? it wouldn't be a > >big effort, would it ? > > > > > -Ursprungliche Nachricht- > > > Von: Andrei Zmievski [mailto:[EMAIL PROTECTED]] > > > Gesendet: Sonntag, 13. Mai 2001 18:34 > > > An: Harald Radi; [EMAIL PROTECTED] > >

Re: AW: [PHP-DEV] arrays

2001-05-13 Thread derick
; > > > > -Ursprungliche Nachricht- > > > Von: Andrei Zmievski [mailto:[EMAIL PROTECTED]] > > > Gesendet: Sonntag, 13. Mai 2001 18:34 > > > An: Harald Radi; [EMAIL PROTECTED] > > > Betreff: Re: [PHP-DEV] arrays > > > > > > >

AW: AW: [PHP-DEV] arrays

2001-05-13 Thread Harald Radi
t desireable to have such a flag ? it wouldn't be a > >big effort, would it ? > > > > > -Ursprungliche Nachricht- > > > Von: Andrei Zmievski [mailto:[EMAIL PROTECTED]] > > > Gesendet: Sonntag, 13. Mai 2001 18:34 > > > An: Harald Radi; [EMAIL PROTECTED] > &

Re: AW: [PHP-DEV] arrays

2001-05-13 Thread Sascha Schumann
On Sun, 13 May 2001, Zeev Suraski wrote: > Why do you need it? Nobody ever needed it until now. It'll slightly slow > down each and every hash update all over PHP, so unless it's really > necessary, we should do without it... The serializer in the session module would benefit from it as

Re: AW: [PHP-DEV] arrays

2001-05-13 Thread Zeev Suraski
e such a flag ? it wouldn't be a >big effort, would it ? > > > -Ursprungliche Nachricht- > > Von: Andrei Zmievski [mailto:[EMAIL PROTECTED]] > > Gesendet: Sonntag, 13. Mai 2001 18:34 > > An: Harald Radi; [EMAIL PROTECTED] > > Betreff: Re: [PHP-DEV] arra

AW: [PHP-DEV] arrays

2001-05-13 Thread Harald Radi
thanks, but wouldn't it desireable to have such a flag ? it wouldn't be a big effort, would it ? > -Ursprungliche Nachricht- > Von: Andrei Zmievski [mailto:[EMAIL PROTECTED]] > Gesendet: Sonntag, 13. Mai 2001 18:34 > An: Harald Radi; [EMAIL PROTECTED] > Betr

Re: [PHP-DEV] arrays

2001-05-13 Thread Andrei Zmievski
At 06:01 PM 5/13/01 +0200, Harald Radi wrote: >hi, > >is there a simple way to determine if a pval of type IS_ARRAY contains >non-interger indices (associative array) ? >something like a flag in the pval structure that indicates that add_assoc_* >was called on it. Nope, you pretty much have to wa

[PHP-DEV] arrays

2001-05-13 Thread Harald Radi
hi, is there a simple way to determine if a pval of type IS_ARRAY contains non-interger indices (associative array) ? something like a flag in the pval structure that indicates that add_assoc_* was called on it. -harald -- PHP Development Mailing List To unsubscribe, e-m