rfc:array_find
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
rfc:array_find [2024/05/01 19:28] – josh | rfc:array_find [2024/06/01 11:23] (current) – Status: Implemented josh | ||
---|---|---|---|
Line 3: | Line 3: | ||
* Date: 2024-04-07 | * Date: 2024-04-07 | ||
* Author: Joshua Rüsweg, josh@php.net | * Author: Joshua Rüsweg, josh@php.net | ||
- | * Status: | + | * Status: |
* First Published at: https:// | * First Published at: https:// | ||
+ | * Discussion: https:// | ||
+ | * Implementation: | ||
===== Introduction ===== | ===== Introduction ===== | ||
Line 40: | Line 42: | ||
< | < | ||
- | The callback function to call to check each element. The first parameter contains the value, the second parameter contains the corresponding key. If this function returns true, the value is returned from < | + | The callback function to call to check each element. The first parameter contains the value, the second parameter contains the corresponding key. If this function returns |
=== Return Value === | === Return Value === | ||
Line 102: | Line 104: | ||
< | < | ||
- | The callback function to call to check each element. The first parameter contains the value, the second parameter contains the corresponding key. If this function returns true, the key is returned from < | + | The callback function to call to check each element. The first parameter contains the value, the second parameter contains the corresponding key. If this function returns |
=== Return Value === | === Return Value === | ||
Line 164: | Line 166: | ||
< | < | ||
- | The callback function to call to check each element. The first parameter contains the value, the second parameter contains the corresponding key. If this function returns true, true is returned from < | + | The callback function to call to check each element. The first parameter contains the value, the second parameter contains the corresponding key. If this function returns |
=== Return Value === | === Return Value === | ||
- | The function returns true, if there is at least one element for which < | + | The function returns |
=== Examples === | === Examples === | ||
Line 222: | Line 224: | ||
< | < | ||
- | The callback function to call to check each element. The first parameter contains the value, the second parameter contains the corresponding key. If this function returns < | + | The callback function to call to check each element. The first parameter contains the value, the second parameter contains the corresponding key. If this function returns < |
=== Return Value === | === Return Value === | ||
- | The function returns true, if < | + | The function returns |
=== Examples === | === Examples === | ||
Line 298: | Line 300: | ||
Each vote requires a 2/3 majority. | Each vote requires a 2/3 majority. | ||
+ | |||
+ | Voting started on 2024-05-15 and will end on 2024-05-29 15:00 UTC. | ||
==== array_find()/ | ==== array_find()/ | ||
- | <doodle title=" | + | <doodle title=" |
* Yes | * Yes | ||
* No | * No | ||
Line 309: | Line 313: | ||
==== array_any()/ | ==== array_any()/ | ||
- | <doodle title=" | + | <doodle title=" |
* Yes | * Yes | ||
* No | * No | ||
Line 317: | Line 321: | ||
===== Implementation ===== | ===== Implementation ===== | ||
- | https:// | + | https:// |
rfc/array_find.1714591701.txt.gz · Last modified: 2024/05/01 19:28 by josh