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

  • mist64

    mist64

    30 Mayıs 2006
  • RFS Dan

    RFS Dan

    22 Temmuz 2014
  • SRT Photoshop Tutorials

    SRT Photosho

    19 Aralık 2012