Hey Mark!Maby I could shed some light on the subject 
Mark let me know if i got this right or not.....
Mark contacted me by email last week asking if i could help out with building an array, and we got that part ironed out, the array is nice an populated, but the data inside the array goes something like this.
$array[0] = "0. AMAATS200 = ACTIVE"
$array[1] = "1. AMAFTS200 = ACTIVE"
$array[2] = "2. AMALMS200 = ACTIVE"
...
Mark is this still true?
What i think he wants to do is pull this information back out and make it into a set useful variables.
What i was going to tell him to do, but i never got the chance yesterday because of a dead computer(MINE!!!), was to
- tell him to build the array using a delimiter of some sort something like | |
- then use the following code to break the array data down to usable variables.
mark using the code that you send me last week, i changed the line
$array[$num] = "$num. $server = $dsp"
to be
$array[$num] = "$num| |$server| |$dsp"
$array[0] would = "0| |AMAATS200| |ACTIVE"
code:
$delim = "| |"
$temp = $array[0]$a = substr("$temp",1,instr("$temp","$delim")-1)
$temp = substr("$temp",instr("$temp","$delim")+len("$delim"),len("$temp"))
$b = substr("$temp",1,instr("$temp","$delim")-1)
$c = substr("$temp",instr("$temp","$delim")+len("$delim"),len("$temp"))
? $a
? $b
? $c
exit
Bryce