public function createWebinarArray($username, $meetingID, $welcomeString, $mPW, $aPW, $SALT, $URL, $logoutURL) { $xml = bbb_wrap_simplexml_load_file(BigBlueButton::createWebinarURL($username, $meetingID, $aPW, $mPW, $welcomeString, $logoutURL, $SALT, $URL)); if ($xml) { if ($xml->meetingID) { $returncode = $xml->returncode; $result = array('returncode' => (string) $returncode, 'message' => (string) $xml->message, 'messageKey' => (string) $xml->messageKey, 'meetingID' => (int) $xml->meetingID, 'attendeePW' => (string) $xml->attendeePW, 'moderatorPW' => (string) $xml->moderatorPW, 'hasBeenForciblyEnded' => (string) $xml->hasBeenForciblyEnded); } else { $result = array('returncode' => (string) $xml->returncode, 'message' => (string) $xml->message, 'messageKey' => (string) $xml->messageKey); } return $result; } else { return null; } }