rfc:token-get-always-tokens
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
rfc:token-get-always-tokens [2016/01/05 04:00] – 1.0/Under Discussion pollita | rfc:token-get-always-tokens [2017/09/22 13:28] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== PHP RFC: token_get_all() flag to return consistent elements ====== | ====== PHP RFC: token_get_all() flag to return consistent elements ====== | ||
- | * Version: 1.0 | + | * Version: 1.1 |
* Date: 2016-01-04 | * Date: 2016-01-04 | ||
* Author: Sara Golemon < | * Author: Sara Golemon < | ||
Line 21: | Line 21: | ||
===== Proposal ===== | ===== Proposal ===== | ||
- | This proposal aims to normalize the output of token_get_all (when requested) by always using associative arrays as the sub-elements in the output. | + | This proposal aims to normalize the output of token_get_all (when requested) by always using associative arrays as the sub-elements in the output. |
Array ( | Array ( | ||
[0] => Array ( | [0] => Array ( | ||
- | [token] => int(374) | + | [id] => int(374) |
[text] => string(6)"<? | [text] => string(6)"<? | ||
[line] => int(1) | [line] => int(1) | ||
) | ) | ||
[1] => Array ( | [1] => Array ( | ||
- | [token] => int(59) | + | [id] => int(59) |
[text] => string(1) ";" | [text] => string(1) ";" | ||
[line] => int(1) | [line] => int(1) | ||
Line 36: | Line 36: | ||
) | ) | ||
- | Note the use of a new constant | + | Note the use of a new constant |
==== Additional changes ==== | ==== Additional changes ==== | ||
Line 51: | Line 51: | ||
==== New Constants ==== | ==== New Constants ==== | ||
- | TOKEN_FULL | + | TOKEN_ASSOC |
===== Future Scope ===== | ===== Future Scope ===== | ||
Line 57: | Line 57: | ||
===== Proposed Voting Choices ===== | ===== Proposed Voting Choices ===== | ||
- | Introduce | + | Introduce |
rfc/token-get-always-tokens.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1