Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 1000 Bytes

simplexml_load_string.md

File metadata and controls

33 lines (23 loc) · 1000 Bytes
title simplexml_load_string()
description Parses XML bytes into a SimpleXML element.

simplexml_load_string()

function simplexml_load_string(string $data, ?string $class_name = 'SimpleXMLElement', int $options = 0, string $namespace_or_prefix = '', bool $is_prefix = false): SimpleXMLElement|false

Parses XML bytes into a SimpleXML element.

Parameters:

  • $data (string)
  • $class_name (?string), default 'SimpleXMLElement', optional
  • $options (int), default 0, optional
  • $namespace_or_prefix (string), default '', optional
  • $is_prefix (bool), default false, optional

Returns: SimpleXMLElement|false

Availability

Compiled (AOT) Magician (eval)
Available Available

No examples yet. Check examples/ and showcases/ for usage patterns.

Internals

For how simplexml_load_string is implemented in the compiler, see the internals page.