<?php
$var = '{"orderId":"1","orderLineId":"175","units":1,"data":[{"name":1,"backgroundColor":"#FFF","backgroundImage":"\/media\/hemeroteca\/ld\/2\/2013-01-14\/14\/page_1_c.jpg","width":1201.1811023622,"height":1916.9291338583,"thumb":"\n\/media\/orderlines\/temp\/1358850162.jpg","guides":[{"type":"horizontal","x":0,"y":10.629921259843,"color":"#000000","restriction":"none"},{"type":"horizontal","x":0,"y":1906.2992125984,"color":"#000000","restriction":"none"},{"type":"vertical","x":10.629921259843,"y":0,"color":"#000000","restriction":"none"},{"type":"vertical","x":1190.5511811024,"y":0,"color":"#000000","restriction":"none"}],"cover":{"id":1,"itemId":1,"itemName":"Portada P\u00e1gina 1","publication":2,"publicationName":"Ser Padres","date":"14\/01\/2013","path":"\/media\/hemeroteca\/thumb\/2\/2013-01-14\/page_1.jpg"},"contents":[],"color":"#000000","errors":[]},{"name":1,"backgroundColor":"#FFF","backgroundImage":"\/media\/hemeroteca\/ld\/2\/2013-01-14\/14\/page_56_c.jpg","width":1201.1811023622,"height":1916.9291338583,"thumb":"\/media\/orderlines\/temp\/62405910715.jpg","guides":[{"type":"horizontal","x":0,"y":10.629921259843,"color":"#000000","restriction":"none"},{"type":"horizontal","x":0,"y":1906.2992125984,"color":"#000000","restriction":"none"},{"type":"vertical","x":10.629921259843,"y":0,"color":"#000000","restriction":"none"},{"type":"vertical","x":1190.5511811024,"y":0,"color":"#000000","restriction":"none"}],"cover":{"id":56,"itemId":56,"itemName":"Contraportada P\u00e1gina 56","publication":2,"publicationName":"Ser Padres","date":"14\/01\/2013","path":"\/media\/hemeroteca\/thumb\/2\/2013-01-14\/page_56.jpg"},"contents":[],"color":"#000000"}]}';
var_dump(json_decode($var));
- Output for 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.24 - 5.5.35, 5.6.8 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
- object(stdClass)#1 (4) {
["orderId"]=>
string(1) "1"
["orderLineId"]=>
string(3) "175"
["units"]=>
int(1)
["data"]=>
array(2) {
[0]=>
object(stdClass)#2 (11) {
["name"]=>
int(1)
["backgroundColor"]=>
string(4) "#FFF"
["backgroundImage"]=>
string(49) "/media/hemeroteca/ld/2/2013-01-14/14/page_1_c.jpg"
["width"]=>
float(1201.1811023622)
["height"]=>
float(1916.9291338583)
["thumb"]=>
string(38) "
/media/orderlines/temp/1358850162.jpg"
["guides"]=>
array(4) {
[0]=>
object(stdClass)#3 (5) {
["type"]=>
string(10) "horizontal"
["x"]=>
int(0)
["y"]=>
float(10.629921259843)
["color"]=>
string(7) "#000000"
["restriction"]=>
string(4) "none"
}
[1]=>
object(stdClass)#4 (5) {
["type"]=>
string(10) "horizontal"
["x"]=>
int(0)
["y"]=>
float(1906.2992125984)
["color"]=>
string(7) "#000000"
["restriction"]=>
string(4) "none"
}
[2]=>
object(stdClass)#5 (5) {
["type"]=>
string(8) "vertical"
["x"]=>
float(10.629921259843)
["y"]=>
int(0)
["color"]=>
string(7) "#000000"
["restriction"]=>
string(4) "none"
}
[3]=>
object(stdClass)#6 (5) {
["type"]=>
string(8) "vertical"
["x"]=>
float(1190.5511811024)
["y"]=>
int(0)
["color"]=>
string(7) "#000000"
["restriction"]=>
string(4) "none"
}
}
["cover"]=>
object(stdClass)#7 (7) {
["id"]=>
int(1)
["itemId"]=>
int(1)
["itemName"]=>
string(17) "Portada Página 1"
["publication"]=>
int(2)
["publicationName"]=>
string(10) "Ser Padres"
["date"]=>
string(10) "14/01/2013"
["path"]=>
string(47) "/media/hemeroteca/thumb/2/2013-01-14/page_1.jpg"
}
["contents"]=>
array(0) {
}
["color"]=>
string(7) "#000000"
["errors"]=>
array(0) {
}
}
[1]=>
object(stdClass)#8 (10) {
["name"]=>
int(1)
["backgroundColor"]=>
string(4) "#FFF"
["backgroundImage"]=>
string(50) "/media/hemeroteca/ld/2/2013-01-14/14/page_56_c.jpg"
["width"]=>
float(1201.1811023622)
["height"]=>
float(1916.9291338583)
["thumb"]=>
string(38) "/media/orderlines/temp/62405910715.jpg"
["guides"]=>
array(4) {
[0]=>
object(stdClass)#9 (5) {
["type"]=>
string(10) "horizontal"
["x"]=>
int(0)
["y"]=>
float(10.629921259843)
["color"]=>
string(7) "#000000"
["restriction"]=>
string(4) "none"
}
[1]=>
object(stdClass)#10 (5) {
["type"]=>
string(10) "horizontal"
["x"]=>
int(0)
["y"]=>
float(1906.2992125984)
["color"]=>
string(7) "#000000"
["restriction"]=>
string(4) "none"
}
[2]=>
object(stdClass)#11 (5) {
["type"]=>
string(8) "vertical"
["x"]=>
float(10.629921259843)
["y"]=>
int(0)
["color"]=>
string(7) "#000000"
["restriction"]=>
string(4) "none"
}
[3]=>
object(stdClass)#12 (5) {
["type"]=>
string(8) "vertical"
["x"]=>
float(1190.5511811024)
["y"]=>
int(0)
["color"]=>
string(7) "#000000"
["restriction"]=>
string(4) "none"
}
}
["cover"]=>
object(stdClass)#13 (7) {
["id"]=>
int(56)
["itemId"]=>
int(56)
["itemName"]=>
string(24) "Contraportada Página 56"
["publication"]=>
int(2)
["publicationName"]=>
string(10) "Ser Padres"
["date"]=>
string(10) "14/01/2013"
["path"]=>
string(48) "/media/hemeroteca/thumb/2/2013-01-14/page_56.jpg"
}
["contents"]=>
array(0) {
}
["color"]=>
string(7) "#000000"
}
}
}
- Output for 5.0.0 - 5.0.5, 5.1.0 - 5.1.6
- Fatal error: Call to undefined function json_decode() in /in/hEad9 on line 4
Process exited with code 255. - Output for 4.4.5 - 4.4.9
- Fatal error: Call to undefined function: json_decode() in /in/hEad9 on line 4
Process exited with code 255. - Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.4
- Fatal error: Call to undefined function: json_decode() in /in/hEad9 on line 4
Process exited with code 255. - Output for 4.3.0 - 4.3.1
- Fatal error: Call to undefined function: json_decode() in /in/hEad9 on line 4
preferences:
278.74 ms | 401 KiB | 356 Q