CakeFest 2025 Madrid: The Official CakePHP Conference

Voting

: min(three, zero)?
(Example: nine)

The Note You're Voting On

AllenJB
12 years ago
<?php
$xml
= json_decode(json_encode((array) simplexml_load_string($string)), 1);
?>

A reminder that json_encode attempts to convert data to UTF-8 without specific knowledge of the source encoding. This method can cause encoding issues if you're not working in UTF-8.

<< Back to user notes page

To Top