[php-src] Issue #13074: Explode from end

From: Date: Fri, 05 Jan 2024 13:28:53 +0000
Subject: [php-src] Issue #13074: Explode from end
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-246179@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/13074
Author: mvorisek

### Description

I would find more consistent explode if negative limit will return N parts from the end
like positive limit does from start. For limitting the actual additional param should be added. This
will be consistent with other functions with negative limit.

repro: https://3v4l.org/u9WM3

```diff
Array
(
    [0] => a
    [1] => b-c-d
)
Array
(
    [0] => a-b-c
    [1] => d
)
```


Thread (1 message)

  • mvorisek
« previous php.bugs (#246179) next »