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

  • Ash100HD

    Ash100HD

    29 EKİM 2011
  • Pepsi

    Pepsi

    1 Kasım 2005
  • The Bad Tutorials

    The Bad Tuto

    6 EKİM 2009