Explode from end with negative limit
未关闭
还没有人认领这个 Issue。
Feature
Status: Needs Triage
- 主要语言
- C
- 星标
- 40.4k
- 派生
- 8.1k
- 平均合并
- 2 天 13 小时
- 30 天内合并 PR
- 96
描述
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
Array
(
[0] => a
[1] => b-c-d
)
Array
(
[0] => a-b-c
[1] => d
)
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 issue 中展示的 PHP explode 行为开始,使用链接的 3v4l.org 复现来比较正数 limit 和负数 limit 的情况。确定从末尾进行限制的预期 API,并添加用于展示预期结果的覆盖测试,然后再评估解释器的更改。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- php
- 领域
- backend
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 25/100