PHP's syntax to create an array (either indexed or assosiative) is the same, aka
$arr = [];
However, json_encode will convert an empty PHP "array" (note the quotes) to an empty JS array ([]), which is not desirable in certain situations.
Is there a way I can create an empty assosiative array in PHP, so json_encode will convert it to an empty JS object, aka {}, instead of [].