note 89430 added to function.simplexml-load-string
| From: | supzero at phparts dot net | Date: | Sat, 07 Mar 2009 18:04:11 +0000 |
| Subject: | note 89430 added to function.simplexml-load-string | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-151592@lists.php.net to get a copy of this message | ||
if we don't know children number. How many loop. How many key.
class XML {
protected $pointer;
public $degerler=array();
function loadString($string){
$this->pointer = simplexml_load_string($string);
return $this->pointer;
}
function loadFile($file){
$this->pointer = simplexml_load_file($file);
return $this->pointer;
}
function getname(){
return $this->pointer->getName();
}
function child(){
return $this->pointer->children();
}
function att(){
return $this->pointer->attributes();
}
function toArray(){
foreach ($this->child() as $sq){
$this->degerler[$this->getname()][$sq->getname()][][] = $sq; // How many key
}
return;
}
}
----
Server IP: 69.147.83.197
Probable Submitter: 94.120.38.216
----
Manual Page -- http://www.php.net/manual/en/function.simplexml-load-string.php
Edit -- https://master.php.net/note/edit/89430
Del: integrated -- https://master.php.net/note/delete/89430/integrated
Del: useless -- https://master.php.net/note/delete/89430/useless
Del: bad code -- https://master.php.net/note/delete/89430/bad+code
Del: spam -- https://master.php.net/note/delete/89430/spam
Del: non-english -- https://master.php.net/note/delete/89430/non-english
Del: in docs -- https://master.php.net/note/delete/89430/in+docs
Del: other reasons-- https://master.php.net/note/delete/89430
Reject -- https://master.php.net/note/reject/89430
Search -- https://master.php.net/manage/user-notes.php