Phying News
Curated security research, vulnerabilities, advisories and tools for practitioners.

Common PHP/Laravel Pitfalls: Understanding Array Slicing

Summary

A common PHP/Laravel pitfall: array_slice and Collection::slice take a length as the second argument, unlike end-index slicing in JavaScript and Python, causing subtle off-by-one bugs.
Published
Collected

original ↗

Related coverage

back