$bbb = new BigBlueButton();
$recordingsParams = array(
'meetingId' => '',
);
// Now get recordings info and display it:
$itsAllGood = true;
try {$result = $bbb->getRecordingsWithXmlResponseArray($recordingsParams);}
catch (Exception $e) {
echo 'Caught exception: ', $e->getMessage(), "\n";
$itsAllGood = false;
}
if ($itsAllGood == true) {
if ($result == null) {
echo "Failed to get any response. Maybe we can't contact the BBB server.";
}
else {
if ($result['returncode'] == 'SUCCESS') {
echo "<p>Meeting info was found on the server.</p>";
}
else {
echo "<p>Failed to get meeting info.</p>";
}
print_r($result);
}
}
当我使用 Bigbluebutton 时,我需要从这些 XML 格式响应中检索特定数据。我不知道如何从这些 XML 格式中检索特定数据?
Array
(
[returncode] => SimpleXMLElement Object
(
[0] => SUCCESS
)
[0] => Array
(
[meetingId] => SimpleXMLElement Object
(
[0] => newtech
)
)
[1] => Array
(
[meetingId] => SimpleXMLElement Object
(
[0] => menew
)
)
)
我需要显示 meetingId 的值。