Biferno 1.7 Tabasoft.it

Application: ItaliaScuola Back-Office3
Reference
Admin | Edit | Reference | Cache | Logs
Click on a class name to see the description of that particular class:

Predefined Classes

ansi
array
biferno
boolean
cacheItem
char
classInfo
client
collection
curApp
curFile
curScript
db
double
error
file
folder
header
httpPage
imageUtils
int
long
memberInfo
multipart
object
ref
regexp
request
search
serverInfo
smtp
stackItem
string
time
unix
unsigned
 

Application Classes

Banner
BrowserBar
Ctrl_Form
FCKeditor
Form
GridChartGraph
Histogram
LocalDate
Result
condb
cookie
folderExt
headerExt
httpExt
mysqlFulltext
objHtml
requestExt
tableExport
utils
 

Functions

Functions

string

Method:

ToArray

array ToArray(string separator=", ")

Converts a string into an array of strings

Description:

The ToArray method converts a string into an array of strings. The array elements are substrings of the original string which are extracted if delimited by the specified separator. The original string is left unmodified.

Parameters:
separator

the separator between elements in the string, the default separator value is ", ", i.e. a comma followed by a space.

Notes:

In the following example the ToArray method applied to the str string generates an array of four elements containing the strings “john”, “paul”, “george”, “ringo” in this order.

str = "john,paul,george,ringo"
myArray = str.ToArray(",")
$myArray[2] // prints the string "paul"

Implementation:
C
 

Return to the string class