Ambrosius Topor

Notiz
(2018-12-29)

Occasional I prefer using strtr over sprintf to make parameters in a string more clear:

$message = strtr("Failed to parse JSON file '&filename': &json_error_message (&json_error_code)", [
    '&filename' => $filename,
    '&json_error_message' => json_last_error_msg(),
    '&json_error_code' => json_last_error()
]);