$postData = file_get_contents('php://input');
$data = json_decode($postData, true);
echo json_encode($data['skus'] ?? []);
php hello.php
require_once('path/to/My/Icon.php');
// massive.php
return [
"stul" => []
]
//index.php
$items = require("massive.php"); // items массив который вернул massive
// ниже где хочешь
$items["stul"]
try {
} catch (Throwable $e) {
$translation = translate($e->getMessage()); // <== Не знаю откуда будешь брать переводы
$class = get_class($e);
throw new $class($translation, $e->code);
}
require_once __DIR__ . '/php-scripts/write-handler.php';