Skip to content

Expand the current __toString behaviour #59

Open
@rtheunissen

Description

@rtheunissen

Python example:

a = dict()
a['a'] = 3
a['b'] = 2
a['c'] = 1

print a
{'a': 3, 'c': 1, 'b': 2}

I had this implemented very very early when php-ds was still private, where the structures would echo something similar to JSON. Values that could not be converted to strings had default fallbacks like object(stdClass)#1 and resource(type)#1.

I imagine the above equivalent would echo something like:

{'a': 3, 'b': 2, 'c': 1}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions