Try this:
$num_array=[0,1,2,3,4,5,6,7,8,9,10,11];
for($i=12;$i<=2048;$i++) { array_push($num_array,$i); }
More Related Contents:
- Convert a comma-delimited string into array of integers?
- Strange behaviour with numbers that have a leading zero [duplicate]
- PHP: Create an array for a range
- how can I print multiple services in this way
- Prevent creating duplicate entries in PHP
- Display multidimensional array in php
- Sum up array values [closed]
- Remove Duplicates in array php
- Show a number to two decimal places
- Insert array into MySQL database with PHP
- Using $_POST to get select option value from HTML
- Using an array as needles in strpos
- How to detect duplicate values in PHP array?
- Array as session variable
- Transpose 2d array, join second level with commas, and join first level with pipes
- MySQLi Bind Param with an array for IN [duplicate]
- Search for PHP array element containing string [duplicate]
- Merge two arrays containing objects and remove duplicate values
- Deep recursive array of directory structure in PHP
- String contains any items in an array (case insensitive)
- Using value of a column as index in results using PDO
- Re-index numeric array keys [duplicate]
- Reverse array in php
- Sort an array of associative arrays by column value
- Find number which is greater than or equal to N in an array
- How does array_diff work?
- how to change the array key to start from 1 instead of 0 [duplicate]
- How to remove values from two arrays that have the same key and value?
- Create PHP array from MySQL column
- Recreate original PHP array from print_r output [duplicate]