Hirdetés

Új hozzászólás Aktív témák

  • DiabloCorsa

    őstag

    válasz Sk8erPeter #18161 üzenetére

    Itt tartok:

    $xml = simplexml_load_string($nombreFichero, 'SimpleXMLElement', LIBXML_NOCDATA);

    Evvel kapok ilyet:

    SimpleXMLElement Object ( [product] => Array ( [0] => SimpleXMLElement Object ( [@attributes] => Array ( [code] => ce0101000499090 [generic] => 01010004 [title] => JAY kombinålt kesztyŹ sårga kÊk - 9 [totalDispo] => 0 [unit] => PÁR ) [detail] => Array ( [0] => SimpleXMLElement Object ( [@attributes] => Array ( [dispo] => 0 [site] => Budapest ) ) [1] => SimpleXMLElement Object ( [@attributes] => Array ( [dispo] => 1 000 - 2 999 [site] => KÜzponti raktår ) ) ) ) [1] => SimpleXMLElement Object ( [@attributes] => Array ( [code] => 0101000499100 [generic] => 01010004 [title] => JAY kombinålt kesztyŹ - 10 [totalDispo] => 10 - 29 [unit] => PÁR ) [detail] => Array ( [0] => SimpleXMLElement Object ( [@attributes] => Array ( [dispo] => 10 - 29 [site] => Budapest ) ) [1] => SimpleXMLElement Object ( [@attributes] => Array ( [dispo] => 5 000 - 9 999 [site] => KÜzponti raktår ) ) ) ) [2] => SimpleXMLElement Object ( [@attributes] => Array ( [code] => 0101000499110 [generic] => 01010004 [title] => JAY komb. kesztyŹ sårga piros -11 [totalDispo] => 0 [unit] => PÁR ) [detail] => Array ( [0] => SimpleXMLElement Object ( [@attributes] => Array ( [dispo] => 0 [site] => Budapest ) ) [1] => SimpleXMLElement Object ( [@attributes] => Array ( [dispo] => 10 000 - 19 999 [site] => KÜzponti raktår ) ) ) ) ) )

    Ebből mi lesz a változója pl. a ce0101000499090 értéknek

    ( SimpleXMLElement Object ( [@attributes] => Array ( [code] => ce0101000499090

Új hozzászólás Aktív témák