Lines Matching refs:i
46 $i = 0;
47 $tagname = $vals[$i]['tag'];
48 if ( isset ($vals[$i]['attributes'] ) )
50 $array[$tagname]['@'] = $vals[$i]['attributes'];
56 $array[$tagname]["#"] = $this->xml_depth($vals, $i);
59 function xml_depth($vals, &$i) { argument
61 if ( isset($vals[$i]['value']) )
63 array_push($children, $vals[$i]['value']);
65 while (++$i < count($vals)) {
66 switch ($vals[$i]['type']) {
68 if ( isset ( $vals[$i]['tag'] ) )
70 $tagname = $vals[$i]['tag'];
84 if ( isset ( $vals[$i]['attributes'] ) )
86 $children[$tagname][$size]['@'] = $vals[$i]["attributes"];
88 $children[$tagname][$size]['#'] = $this->xml_depth($vals, $i);
91 array_push($children, $vals[$i]['value']);
94 $tagname = $vals[$i]['tag'];
103 if( isset ( $vals[$i]['value'] ) )
105 $children[$tagname][$size]["#"] = $vals[$i]['value'];
111 if ( isset ($vals[$i]['attributes']) )
113 $children[$tagname][$size]['@'] = $vals[$i]['attributes'];