- print_r: documentation ( source)
- utf8_encode: documentation ( source)
- json_encode: documentation ( source)
<?php
// $string = 'Automóvel';
$string = utf8_encode('Automóvel');
$products = array('horloges', 'media', $string);
echo'<pre>';print_r($products);
// convert to a string
$string = json_encode($products);
echo $string; // ["horloges","media","gereedschap"]