print_r($result); prints the below
stdClass Object
(
[result] => stdClass Object
(
[insertCount] => 0
[updateCount] => 1
[rejectedCount] => 0
[totalCount] => 1
[errorMessage] =>
)
)
How can I get the values of insertCount, updateCount, rejectedCount, totalCount and errorMessage from the $result?