Little River Software
Home -> Articles -> String Vs Array
Little River Software - Custom PHP Software Design and Programming
The Requirements

The PHP Method

The ASP Method

The original string based method of handling a replace on a string of data.

' strTmp is a string filled with a lot of data
strTmp = replace(strTmp,"1add", "ADD")

The new array based method of handling a replace on a string of data.

'arrTmp is an array filled with fragments of strTmp
for i = 1 to 1000
arrTmp(i) = replace(arrTmp(i),"1add", "ADD")
next

The Requirements

The PHP Method