rfc:is-countable
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
rfc:is-countable [2018/01/21 18:01] – created carusogabriel | rfc:is-countable [2018/03/02 17:07] (current) – RFC was implemented in PHP 7.3 carusogabriel | ||
---|---|---|---|
Line 3: | Line 3: | ||
* Date: 2018-01-21 | * Date: 2018-01-21 | ||
* Author: Gabriel Caruso (< | * Author: Gabriel Caruso (< | ||
- | * Status: | + | * Status: |
* First Published at: https:// | * First Published at: https:// | ||
Line 52: | Line 52: | ||
bool is_countable(mixed $var) | bool is_countable(mixed $var) | ||
| | ||
- | Verify that the content of a variable | + | Verify that the content of a variable is an //array// or an object implementing // |
==== Parameters ==== | ==== Parameters ==== | ||
Line 76: | Line 76: | ||
</ | </ | ||
- | === Example #1: is_countable with conditions === | + | === Example #2: is_countable with conditions === |
<code php> | <code php> | ||
Line 101: | Line 101: | ||
===== Future Scope ===== | ===== Future Scope ===== | ||
- | Is out of scope, but a new countable type could be cogitated in the future. | + | Is out of scope, but a new //countable// type could be cogitated in the future. |
===== Proposed Voting Choices ===== | ===== Proposed Voting Choices ===== | ||
- | Since this is not a PHP language changed, a 50% + 1 majority is required. | + | Since this is not a PHP language changed, a 50% + 1 majority is required. |
+ | |||
+ | Voting begins **2018-02-26 17:00 UTC** and ends **2018-03-02 17:00 UTC**. | ||
+ | |||
+ | <doodle title=" | ||
+ | * Yes | ||
+ | * No | ||
+ | </ | ||
===== Proposal and Patch ===== | ===== Proposal and Patch ===== | ||
Line 113: | Line 120: | ||
===== References ===== | ===== References ===== | ||
- | https:// | + | https:// |
+ | https:// |
rfc/is-countable.1516557686.txt.gz · Last modified: 2018/01/21 18:01 by carusogabriel