Re: [PHP-DOC] Translation help

2012-01-05 Thread Thiago H. Pojda
On Fri, Jan 6, 2012 at 12:07 AM, Philip Olson  wrote:

>
> Hello Thiago,
>
> It means whether or not the key association is maintained. For
> example:
>
>  $fruit = array('banana', 'orange', 'apple');
>  echo $fruit[0]; // banana
>  sort($fruit);
>  echo $fruit[0]; // apple
>
> So sort() does not maintain the correlation between key and value.
>
> That description should use simpler and less wordy English, but
> don't go and look up who wrote it because SVN lies! ;)
>
> Regards,
> Philip
>

Thanks, Philip!

I got it now. Translated and commited.

This was the first page where I saw a different language "tone", hehe.

"PHP has several functions that deal with sorting arrays, and this document
exists to help sort it all out."


;)


Thiago Henrique Pojda
+55 41 8856-7925


Re: [PHP-DOC] Translation help

2012-01-05 Thread Philip Olson

On Jan 5, 2012, at 4:19 PM, Thiago H. Pojda wrote:

> Guys,
> 
> Can anyone help me understanding the following sentence?
> 
> Whether or not the correlation between the keys and values are
> maintained after the sort, which may mean the keys are reset
> numerically (0,1,2 ...)
> 
> http://br2.php.net/manual/en/array.sorting.php

Hello Thiago,

It means whether or not the key association is maintained. For 
example:

 $fruit = array('banana', 'orange', 'apple');
 echo $fruit[0]; // banana
 sort($fruit);
 echo $fruit[0]; // apple

So sort() does not maintain the correlation between key and value.

That description should use simpler and less wordy English, but 
don't go and look up who wrote it because SVN lies! ;)

Regards,
Philip


[PHP-DOC] Translation help

2012-01-05 Thread Thiago H. Pojda
Guys,

Can anyone help me understanding the following sentence?

Whether or not the correlation between the keys and values are
maintained after the sort, which may mean the keys are reset
numerically (0,1,2 ...)

http://br2.php.net/manual/en/array.sorting.php

Thanks!


Thiago Henrique Pojda
+55 41 8856-7925