Home
PHP
Chart
Class
Components
Cookie Session
Data Structure
Data Type
Date
Design Patterns
Development
DNS
Email
File Directory
Form
Functions
Graphics Image
HTML
Language Basics
Login Authentication
Math
MySQL Database
Network
Operator
PDF
Reflection
Statement
String
Utility Function
Web Services SOAP WSDL
XML
range « Utility Function « PHP
PHP
Utility Function
range
1.
range( ) function creates an array of numbers between a low value and a high value.
2.
range( ) function has a third parameter that allows you specify a step amount in the range.
3.
If your low parameter (parameter one) is higher than your high parameter (parameter two), you get an array counting down, like this:
4.
Initializing an Array As a Range or Sequence of Values: array range(mixed $start, mixed $end[, mixed $step])
5.
Use range( ) to create arrays of characters, like this: