Re: Split as an alias to explode

From: Date: Fri, 15 Aug 2025 19:02:08 +0000
Subject: Re: Split as an alias to explode
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-128481@lists.php.net to get a copy of this message
> Le 15 août 2025 à 17:53, Vinicius Dias <carlosv775@gmail.com> a écrit : > > Hello, internal folks. > > We have join as an alias for > implode so I think it makes sense to > have split as an alias to > explode, doesn't it? > > If I understood it correctly (I don't have any knowledge in PHP's > internal code) this doesn't add a lot of maintenance complexity so I > see no reason to not have it. > > I tried starting a PR but it's probably missing stuff (although it > seems to work after I compiled and gave it a try). > > https://github.com/php/php-src/pull/19490 > > Since this is such a small change, I wouldn't expect it to require an > RFC, but if it does, I'd be happy to write it. > > Thanks in advance for any feedback. Hi, We already have a function named str_split() which does something else. Adding a function named split() could cause confusion. —Claude

« previous php.internals (#128481) next »