I cannot find how to write empty Python struct/dictionary in PHP. When I wrote "{}" in PHP, it gives me an error. What is the equivalent php programming structure to Python's dictionary?
If you are trying to pass a null value from PHP to a Python dictionary, you need to use an empty object rather than an empty array.
You can define a new and empty object like $x = new stdClass();
What is the equivalent php structure to python's dictionary?