public static function SendItem($PlayerName, $Subject) { $Command = '.send items ' . $PlayerName . ' "' . $Subject . '" "' . Soap::BuildMessageBody($PlayerName, $Subject) . '" '; $ItemsString = ''; foreach (Soap::$ItemsArray as $Item) { $ItemsString .= $Item['id'] . ':' . $Item['count'] . ' '; } $Command = $Command . $ItemsString; if (Soap::Execute($Command)) { return true; } else { return false; } }