json_encode() flag JSON_UNESCAPED_SLASHES
Bonjour,
Je viens d'upgrade ma version php à 5.4.3 en voyant un flag dont j'ai besoin pour la fonction json_encode (http://php.net/manual/fr/function.json-encode.php)
Il est dit que le flag JSON_UNESCAPED_SLASHES est utilisable à partir de la version 5.4.0, je suis bien en 5.4.3 (php -v), et pourtant j'ai un "Message: Use of undefined constant JSON_UNESCAPED_SLASHES - assumed 'JSON_UNESCAPED_SLASHES'" sur cette ligne de code:
Code:
json_encode('test', JSON_UNESCAPED_SLASHES);
Est-ce normal ? Comment se servir de ce flag ?
Merci pour l'aide !