-
Notifications
You must be signed in to change notification settings - Fork 736
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clarify array_diff_(u)assoc
examples
#2650
Conversation
@@ -80,11 +80,13 @@ | |||
<example> | |||
<title><function>array_diff_uassoc</function> example</title> | |||
<para> | |||
The <literal>"a" => "green"</literal> | |||
In this example you see the <literal>"a" => "green"</literal> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this example you see the <literal>"a" => "green"</literal> | |
In this example the <literal>"a" => "green"</literal> |
Would be better to rephrase the other wording to get rid of personalization.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's right! I also took the opportunity to remove "you" occurrences in these pages.
888a3dc
to
fc5dfd7
Compare
return ($a > $b)? 1:-1; | ||
|
||
return ($a > $b) ? 1 : -1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could use the spaceship operator, as this exists since 7.0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here you go 🙂
fc5dfd7
to
cd37ecb
Compare
Fix #2631
My last try to clarify this wasn't the good fix. I try here to clarify what happens with
array_diff_(u)assoc
and whyred
is present in the output.