Beispiel
liefert mir
und nicht wie erwartet
Gibt es bei json_encode eine Möglichkeit mein gewünschte Ausgabe zu erhalten?
PHP-Code:
json_encode(['url' => 'http://localhost/prog/ajax')
[
"str": "http:\/\/localhost\/prog\/ajax"
]
"str": "http:\/\/localhost\/prog\/ajax"
]
[
"str": "http://localhost/prog/ajax"
]
"str": "http://localhost/prog/ajax"
]
Kommentar