PHP range() Function

The range() function used to create an array containing a range of elements.The range() function creates an array containing a range of elements.This function returns an array of elements from low to high.

Example -

Example -