Re: [RFC] Normalize token_get_all() output (with flag)

From: Date: Wed, 06 Jan 2016 19:05:40 +0000
Subject: Re: [RFC] Normalize token_get_all() output (with flag)
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-90214@lists.php.net to get a copy of this message
On Wed, Jan 6, 2016 at 1:43 AM, Nikita Popov <nikita.ppv@gmail.com> wrote: > On Tue, Jan 5, 2016 at 8:45 PM, Sara Golemon <pollita@php.net> wrote: >> Maybe TOKEN_ASSOC? Since it provides associative array elements (as >> opposed to the current indexed array behavior) > > I like that one. > Have updated the RFC accordingly. I've also renamed the 'token' field in the subarray to 'id' because everytime I write an example, I end up finding myself with expressions like token_name($token['token']) because it makes perfect sense to call your subarray $token (e.g. foreach(token_get_all(...) as $token)) so... too many tokens, amirite? -Sara

« previous php.internals (#90214) next »