<?php json_encode(mixed $value, int $flags = 0, int $depth = 512): string|false
<?php } try { file_put_contents($configFilePath, json_encode($options)); } catch (Throwable) { return false; }
<?php { $jsonOptions = JSON_PARTIAL_OUTPUT_ON_ERROR | JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_AMP | JSON_HEX_QUOT; return (string)json_encode($data, $jsonOptions); } public function getAssetContents(string $asset): string