|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull Requests |
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 11:00:01 2025 UTC |
Description: ------------ This is a low low low priority feature request, but it would be nice if the range() function supported letters beyond just A to Z. For example: echo count(range('A','ZZZZ')); returns 26, but in many other languages once you get to Z it continues to AA For example in perl: perl -e '$_=()=A..ZZZZ;print' you get 475254 Test script: --------------- $a = count(range('A','ZZZZ')); if ($a == 475254 ) { echo 'RANGE IS WORKING!' } else { echo 'RANGE STOPS AT Z. Foo. ' } Expected result: ---------------- RANGE IS WORKING! Actual result: -------------- RANGE STOPS AT Z. Foo.