How do I reference [0]?
object(GetClassSchedulesResult)#8 (6) {
["ClassSchedules"]=> object(stdClass)#9 (1) {
["ClassSchedule"]=> array(20) {
[0]=> object(ClassSchedule)#10 (21) {
["Classes"]=> string(18) "Rails"
This works:
$classes = $service->GetClassSchedules($parameters)->
GetClassSchedulesResult->ClassSchedules->ClassSchedule;
I'm trying to get to "Classes". I'm having trouble referencing the [0]: This does not work:
$classes = $service->GetClassSchedules($parameters)->
GetClassSchedulesResult->ClassSchedules->ClassSchedule->0->Classes;
UPDATE: Once I reference it correctly, the output always includes something like:
string(18) "the data i want here" ?>
Any easy way to get the data without string(18)
and ?>
?