DEV Community

Discussion on: Reverse an array in PHP by using recursion

Collapse
 
tw2113 profile image
Michael Beckwith

My biggest question is...why? The native functions are available in all major versions still in production. Why recreate the wheel with this topic, other than perhaps to say you could?

Collapse
 
yanyy profile image
Yongyao Yan

The point is to use a very common example to show a recursive algorithm.