rfc:is-countable

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
rfc:is-countable [2018/01/21 18:01] – created carusogabrielrfc: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 (<carusogabriel34@gmail.com>)   * Author: Gabriel Caruso (<carusogabriel34@gmail.com>)
-  * Status: Under Discussion+  * Status: Implemented in PHP 7.3
   * First Published at: https://wiki.php.net/rfc/is-countable   * First Published at: https://wiki.php.net/rfc/is-countable
  
Line 52: Line 52:
   bool is_countable(mixed $var)   bool is_countable(mixed $var)
      
-Verify that the content of a variable is is an //array// or an object implementing //Countable//+Verify that the content of a variable is an //array// or an object implementing //Countable//
  
 ==== Parameters ==== ==== Parameters ====
Line 76: Line 76:
 </code> </code>
  
-=== 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="is-countable function" auth="carusogabriel" voteType="single" closed="true"> 
 +   * Yes 
 +   * No 
 +</doodle>
  
 ===== Proposal and Patch ===== ===== Proposal and Patch =====
Line 113: Line 120:
 ===== References ===== ===== References =====
  
-https://wiki.php.net/rfc/counting_non_countables+https://wiki.php.net/rfc/counting_non_countables\\ 
 +https://externals.io/message/101648
rfc/is-countable.1516557686.txt.gz · Last modified: 2018/01/21 18:01 by carusogabriel