Skip to content

output formatting #9

Description

@tablatronix

very nice
It would be nice if its output was more matched to var_dump
datatype(length) value for example

string(5) "item1"
as opposed to
(string) 'item1' (5 chars)

// var_dump output
object(SimpleXMLElement)#4 (1) {
  ["item"]=>
  string(5) "item1"
}

also if you pass a custom class to it, it is not reflected in output

// simplexml_load_string($xml, 'SimpleXMLExtended')
// var_dump output
object(SimpleXMLExtended)#4 (1) {
  ["item"]=>
  string(5) "item1"
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions