How to generate an array of strings numbers with a specific range

generate an array with a range using PHP

Welcome back to shorltearner.com, we are starting a new series of PHP interview questions for beginners and experienced,so in previous post we learn, Converting words to numbers in PHP

Advertisement

In this post we see how to generate an array with a range taken from a string.

How to generate an array of strings numbers with a specific range

Also Read
Unable to create a directory a wordpress error
PHP program that multiplies corresponding elements of two given lists
PHP program to print out the multiplication table up to 6*6
Write a PHP program to check if the bits of the two given positions of a number are same or not

Output

another way to find range between to given numbers with the help of php predefined function range(), see the below example

Output

Tags: No tags

Comments are closed.