Hello,
I have a script at work that i need to edit and it has an object in it that contains several arrays.... is there a way that i can pull those arrays out of the object so i can sort them and pull the information i need? please let me know thanks.
You want to visually inspect an array? Try [man]print_r/man.
no i want to use the data in the arrays, Ive never worked with objects before.
The object name is $obj. and it contains about 15 different arrays...
I was wondering how I accessed those arrays.
If the arrays are class variables, then you would refer to them as:
$obj->arrayName // the entire array $obj->arrayName[1] // one element of the array
ok awesome thanks!! I appreciate it.
Don't forget to mark this thread resolved.