86 of 110 menu

The Range of Numbers in PHP

In PHP, the range of numbers is obtained using the range function. See the example:

<?php $arr = range(1, 5); var_dump($arr); ?>

Code execution result:

[1, 2, 3, 4, 5]
English
БеларускаяEspañolРусский
We use cookies for website operation, analytics, and personalization. Data processing is carried out in accordance with the Privacy Policy.
accept all customize decline