note 126858 added to book.simplexml

From: Date: Wed, 16 Feb 2022 17:53:25 +0000
Subject: note 126858 added to book.simplexml
Groups: php.notes 
Request: Send a blank email to php-notes+get-217625@lists.php.net to get a copy of this message
I rewrite the function to convert xml object to array because my case is more simple: function xmlObjToArr($obj) { $array = []; foreach($obj as $item){ $row = []; foreach($item as $key => $val){ $col = array( (string)$key => (string)$val ); array_push($row,$col); } array_push($array,$row); } return $array; } ---- Server IP: 45.112.84.4 Probable Submitter: 80.90.5.135 (proxied: 93.176.170.145) ---- Manual Page -- https://php.net/manual/en/book.simplexml.php Edit -- https://main.php.net/note/edit/126858 Del: integrated -- https://main.php.net/note/delete/126858/integrated Del: useless -- https://main.php.net/note/delete/126858/useless Del: bad code -- https://main.php.net/note/delete/126858/bad+code Del: spam -- https://main.php.net/note/delete/126858/spam Del: non-english -- https://main.php.net/note/delete/126858/non-english Del: in docs -- https://main.php.net/note/delete/126858/in+docs Del: other reasons-- https://main.php.net/note/delete/126858 Reject -- https://main.php.net/note/reject/126858 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#217625) next »