Re: [RFC] Define proper semantics for range() function

From: Date: Tue, 16 May 2023 19:37:28 +0000
Subject: Re: [RFC] Define proper semantics for range() function
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-120319@lists.php.net to get a copy of this message
On Tue, 16 May 2023 at 17:49, Jorg Sowa <jorg.sowa@gmail.com> wrote: > Thank you. That makes sense. I have last question about case with integer > and string digit, i.e. range('5', 10) or range('1', 9). What would be in > this case expected output? I couldn't find any test cases covering this > example. > I've added test cases, but the RFC already mentions that those numeric strings would be interpreted as integers and thus generate a list of ints. Best regards, George P. Banyard PS: Just an etiquette reminder to bottom post instead of top posting to not carry around the previous bits of emails (see https://github.com/Danack/RfcCodex/blob/master/etiquette/mailing_list.md#why-should-i-place-my-response-below-the-quoted-text )

« previous php.internals (#120319) next »