You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone, is it possible to turn off creation of single closing tag when input array is empty?
This code:
ArrayToXml::convert(['ticket' => []], 'tickets', xmlEncoding: 'UTF-8');
creates this output:
<?xml version="1.0" encoding="UTF-8"?> <tickets> <ticket/> </tickets>
however I need this output:
<?xml version="1.0" encoding="UTF-8"?> <tickets> </tickets>
Is that possible?
I went trough the docs but couldnt find any option / property.
Beta Was this translation helpful? Give feedback.
All reactions