<?php
$a = array('<foo>',"'bar'",'"baz"','&blong&', "\xc3\xa9");
echo json_encode($a),y "\n";
- Output for 5.4.0 - 5.4.25
- Parse error: syntax error, unexpected '"\n"' (T_CONSTANT_ENCAPSED_STRING), expecting ',' or ';' in /in/lRcf8 on line 4
Process exited with code 255. - Output for 5.3.0 - 5.3.28
- Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in /in/lRcf8 on line 4
Process exited with code 255.
preferences:
179.59 ms | 1395 KiB | 62 Q