SORU
11 EYLÜL 2010, CUMARTESİ


SimpleXml dizeye

PHP simpleXMLElement dize yapar herhangi bir işlevi var mı?

CEVAP
11 EYLÜL 2010, CUMARTESİ


Bunu başarmak için SimpleXMLElement::asXML() yöntemi kullanabilirsiniz:

$string = "<element><child>Hello World</child></element>";
$xml = new SimpleXMLElement($string);

// The entire XML tree as a string:
// "<element><child>Hello World</child></element>"
$xml->asXML();

// Just the child node as a string:
// "<child>Hello World</child>"
$xml->child->asXML();

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • Best Quality Cartoons

    Best Quality

    10 ŞUBAT 2014
  • Max Lee

    Max Lee

    18 AĞUSTOS 2006
  • UKF Dubstep

    UKF Dubstep

    29 NİSAN 2009