Bu aşağıdaki kodu nasıl php array yaparız dostlar ?
serialize denedim json encode to decode denedim yimedi :/
Edit: Problemi çözdüğünüzü yeni gördüm
$json = '{
"default_sku" : "SKU3075",
"customer" : {},
"panel_nav" : {
"nav_cache_id" : "1456300000",
"default" : {
"item" : {
"item" : {
"id" : "CAT2146PROD310"
},
"id" : "CAT2146"
},
"id" : "bestsellers",
"searchDefault" : "Sitede ara"
}
},
"catalog" : {
"spp" : {
"product" : {
"uom" : null,
"more_desc_flag" : 1,
"sorters" : {
"color" : [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11
],
"names" : [
11,
0,
4,
8,
6,
1,
2,
7,
10,
3,
5,
9
],
"status" : {
"1" : [
11,
4,
8,
2,
7,
10,
3
],
"2" : [
0,
6,
1,
5,
9
]
}
},
"has_best_sellers" : null,
"filters" : {
"pro_products" : [],
"limited_life" : [],
"finishes" : {
"Satin" : [
0,
1,
2,
3,
10
],
"Matte" : [
5,
6,
7,
8,
9,
11
],
"Glaze" : [
4
]
},
"sorted_finishes" : [
"Glaze",
"Matte",
"Satin"
]
},
"size" : "3 g",
"default_cat_id" : "CAT168",
"product_type" : "1",
"cross_sell" : [
{
"rating_image" : "",
"uom" : null,
"cat_img_name" : "M71P",
"sorters" : {
"color" : [
0
],
"names" : [
0
],
"status" : {
"1" : [
0
]
}
},
"filters" : {
"pro_products" : [],
"limited_life" : [],
"sorted_finishes" : []
},
"size" : "15 ml",
"category_id" : "CAT166",
"total_review_count" : null,
"sized" : 1,
"product_id" : "PROD255",
"prod_base_id" : "255",
"skus" : [
{
"uom" : null,
"finish" : null,
"color" : [],
"shoppable" : "1",
"inventory_status" : "1",
"shade_name" : [],
"finish_description" : null,
"product_code" : "M71P01",
"product_size" : "15 ml",
"shade_description" : "Seffaf",
"inventory_status_message" : "",
"sku_base_id" : "5044",
"formatted_price" : "55.00 TL",
"display_order" : "0",
"formatted_unit_price" : null,
"displayable" : 4,
"sku_id" : "SKU5044",
"path" : "CAT166PROD255SKU5044",
"sku_image" : "/images/products/spp/M71P01.jpg",
"smoosh" : "/images/products/swatches/168x168/M71P01.jpg",
"smoosh_thumb" : "/images/products/swatches/56x56/M71P01.jpg",
"pro_product" : 0,
"limited_life" : 0,
"price" : "55",
"image_medium_rollover" : "/images/products/spp/M71P01_alt.jpg",
"unit_size" : null
}
],
"cm_name" : "Clear Lipglass ",
"product_multicolor_type" : null,
"sku_count" : 1,
"short_desc" : "Hem zarif bir ışıltı, hem de cam ışıltısı verebilen özgün bir dudak...",
"suppress" : null,
"formatted_unit_price" : null,
"name" : "Clear Lipglass",
"uri" : "/product/166/255/Products/Dudak/Dudak-Parlatcs/Clear-Lipglass/index.tmpl",
"header_image_height" : 12,
"price_with_tax" : "55.00 TL",
"shaded" : 0,
"sub_line" : null,
"price" : "55.00 TL",
"unit_size" : null,
"average_rating" : "0.0",
"rating_text_image" : "/images/search/title_overallrating-blk.gif",
"image_small" : "/images/products/56x56/M71P.jpg",
"header" : "/images/pnav/product/headers/pnav_M71P_200x12_off.gif",
"rating_display" : "none"
}
],
"category_id" : "CAT2146",
"sized" : 0,
"product_id" : "PROD310",
"skus" : [
{
"uom" : null,
"finish" : "Satin",
"color" : [
"#E98B85"
],
"shoppable" : "0",
"inventory_status" : "2",
"shade_name" : "Faux",
"finish_description" : "Doygun renkli. Satenimsi, yarı-mat sonuç. Yoğun renk verirken nemlendir.",
"product_code" : "M3EW11",
"product_size" : "3 g",
"shade_description" : "Hafifletilmis eflatun-pembe",
"inventory_status_message" : "STOKTA MEVCUT DEĞİL",
"sku_base_id" : "3042",
"formatted_price" : "58.00 TL",
"display_order" : "0",
"formatted_unit_price" : null,
"displayable" : 4,
"sku_id" : "SKU3042",
"path" : "CAT2146PROD310SKU3042",
"sku_image" : "/images/products/spp/M3EW11.jpg",
"smoosh" : "/images/products/swatches/168x168/M3EW11.jpg",
"smoosh_thumb" : "/images/products/swatches/56x56/M3EW11.jpg",
"pro_product" : 0,
"limited_life" : 0,
"price" : "58",
"image_medium_rollover" : "/images/products/spp/M3EW11_alt.jpg",
"unit_size" : null
},
{
"uom" : null,
"finish" : "Satin",
"color" : [
"#EDB9AE"
],
"shoppable" : "0",
"inventory_status" : "2",
"shade_name" : "Myth",
"finish_description" : "Doygun renkli. Satenimsi, yarı-mat sonuç. Yoğun renk verirken nemlendir.",
"product_code" : "M3EW46",
"product_size" : "3 g",
"shade_description" : "Açik nötr ten rengi ",
"inventory_status_message" : "STOKTA MEVCUT DEĞİL",
"sku_base_id" : "3077",
"formatted_price" : "58.00 TL",
"display_order" : "0",
"formatted_unit_price" : null,
"displayable" : 4,
"sku_id" : "SKU3077",
"path" : "CAT2146PROD310SKU3077",
"sku_image" : "/images/products/spp/M3EW46.jpg",
"smoosh" : "/images/products/swatches/168x168/M3EW46.jpg",
"smoosh_thumb" : "/images/products/swatches/56x56/M3EW46.jpg",
"pro_product" : 0,
"limited_life" : 0,
"price" : "58",
"image_medium_rollover" : "/images/products/spp/M3EW46_alt.jpg",
"unit_size" : null
},
{
"uom" : null,
"finish" : "Satin",
"color" : [
"#FF719E"
],
"shoppable" : "1",
"inventory_status" : "1",
"shade_name" : "Pink Nouveau",
"finish_description" : "Doygun renkli. Satenimsi, yarı-mat sonuç. Yoğun renk verirken nemlendir.",
"product_code" : "M3EW48",
"product_size" : "3 g",
"shade_description" : "Parlak pembe",
"inventory_status_message" : "",
"sku_base_id" : "3079",
"formatted_price" : "58.00 TL",
"display_order" : "0",
"formatted_unit_price" : null,
"displayable" : 4,
"sku_id" : "SKU3079",
"path" : "CAT2146PROD310SKU3079",
"sku_image" : "/images/products/spp/M3EW48.jpg",
"smoosh" : "/images/products/swatches/168x168/M3EW48.jpg",
"smoosh_thumb" : "/images/products/swatches/56x56/M3EW48.jpg",
"pro_product" : 0,
"limited_life" : 0,
"price" : "58",
"image_medium_rollover" : "/images/products/spp/M3EW48_alt.jpg",
"unit_size" : null
},
{
"uom" : null,
"finish" : "Satin",
"color" : [
"#DE9BAF"
],
"shoppable" : "1",
"inventory_status" : "1",
"shade_name" : "Snob",
"finish_description" : "Doygun renkli. Satenimsi, yarı-mat sonuç. Yoğun renk verirken nemlendir.",
"product_code" : "M3EW53",
"product_size" : "3 g",
"shade_description" : "Açik nötr pembe",
"inventory_status_message" : "",
"sku_base_id" : "3084",
"formatted_price" : "58.00 TL",
"display_order" : "0",
"formatted_unit_price" : null,
"displayable" : 4,
"sku_id" : "SKU3084",
"path" : "CAT2146PROD310SKU3084",
"sku_image" : "/images/products/spp/M3EW53.jpg",
"smoosh" : "/images/products/swatches/168x168/M3EW53.jpg",
"smoosh_thumb" : "/images/products/swatches/56x56/M3EW53.jpg",
"pro_product" : 0,
"limited_life" : 0,
"price" : "58",
"image_medium_rollover" : "/images/products/spp/M3EW53_alt.jpg",
"unit_size" : null
},
{
"uom" : null,
"finish" : "Glaze",
"color" : [
"#E0A19E"
],
"shoppable" : "1",
"inventory_status" : "1",
"shade_name" : "Hue",
"finish_description" : "Işıltılı bir sonuç veren doğal renklendirme. Dudakları parlatarak ışıldamalarını sağlar.",
"product_code" : "M2LN18",
"product_size" : "3 g",
"shade_description" : "Hafif soluk pembe",
"inventory_status_message" : "",
"sku_base_id" : "2246",
"formatted_price" : "58.00 TL",
"display_order" : "0",
"formatted_unit_price" : null,
"displayable" : 4,
"sku_id" : "SKU2246",
"path" : "CAT2146PROD310SKU2246",
"sku_image" : "/images/products/spp/M2LN18.jpg",
"smoosh" : "/images/products/swatches/168x168/M2LN18.jpg",
"smoosh_thumb" : "/images/products/swatches/56x56/M2LN18.jpg",
"pro_product" : 0,
"limited_life" : 0,
"price" : "58",
"image_medium_rollover" : "/images/products/spp/M2LN18_alt.jpg",
"unit_size" : null
},
{
"uom" : null,
"finish" : "Matte",
"color" : [
"#BD766F"
],
"shoppable" : "0",
"inventory_status" : "2",
"shade_name" : "Taupe",
"finish_description" : "Rengi ortaya çıkaran pigmentlerle zenginleştirilmiş. Parlama yapmaz, mat bir sonuç sağlar",
"product_code" : "M2LP09",
"product_size" : "3 g",
"shade_description" : "Hafif kirmizimsi-boz kahverengi",
"inventory_status_message" : "STOKTA MEVCUT DEĞİL",
"sku_base_id" : "2274",
"formatted_price" : "58.00 TL",
"display_order" : "0",
"formatted_unit_price" : null,
"displayable" : 4,
"sku_id" : "SKU2274",
"path" : "CAT2146PROD310SKU2274",
"sku_image" : "/images/products/spp/M2LP09.jpg",
"smoosh" : "/images/products/swatches/168x168/M2LP09.jpg",
"smoosh_thumb" : "/images/products/swatches/56x56/M2LP09.jpg",
"pro_product" : 0,
"limited_life" : 0,
"price" : "58",
"image_medium_rollover" : "/images/products/spp/M2LP09_alt.jpg",
"unit_size" : null
},
{
"uom" : null,
"finish" : "Matte",
"color" : [
"#cd2834"
],
"shoppable" : "0",
"inventory_status" : "2",
"shade_name" : "Lady Danger",
"finish_description" : "Rengi ortaya çıkaran pigmentlerle zenginleştirilmiş. Parlama yapmaz, mat bir sonuç sağlar",
"product_code" : "M2LP15",
"product_size" : "3 g",
"shade_description" : "Canli parlak mercan-kirmizi",
"inventory_status_message" : "STOKTA MEVCUT DEĞİL",
"sku_base_id" : "2280",
"formatted_price" : "58.00 TL",
"display_order" : "0",
"formatted_unit_price" : null,
"displayable" : 4,
"sku_id" : "SKU2280",
"path" : "CAT2146PROD310SKU2280",
"sku_image" : "/images/products/spp/M2LP15.jpg",
"smoosh" : "/images/products/swatches/168x168/M2LP15.jpg",
"smoosh_thumb" : "/images/products/swatches/56x56/M2LP15.jpg",
"pro_product" : 0,
"limited_life" : 0,
"price" : "58",
"image_medium_rollover" : "/images/products/spp/M2LP15_alt.jpg",
"unit_size" : null
},
{
"uom" : null,
"finish" : "Matte",
"color" : [
"#ca7981"
],
"shoppable" : "1",
"inventory_status" : "1",
"shade_name" : "Please Me",
"finish_description" : "Rengi ortaya çıkaran pigmentlerle zenginleştirilmiş. Parlama yapmaz, mat bir sonuç sağlar",
"product_code" : "M2LP32",
"product_size" : "3 g",
"shade_description" : "Hafif-pembe, renklendirilmis pembe",
"inventory_status_message" : "",
"sku_base_id" : "2282",
"formatted_price" : "58.00 TL",
"display_order" : "0",
"formatted_unit_price" : null,
"displayable" : 4,
"sku_id" : "SKU2282",
"path" : "CAT2146PROD310SKU2282",
"sku_image" : "/images/products/spp/M2LP32.jpg",
"smoosh" : "/images/products/swatches/168x168/M2LP32.jpg",
"smoosh_thumb" : "/images/products/swatches/56x56/M2LP32.jpg",
"pro_product" : 0,
"limited_life" : 0,
"price" : "58",
"image_medium_rollover" : "/images/products/spp/M2LP32_alt.jpg",
"unit_size" : null
},
{
"uom" : null,
"finish" : "Matte",
"color" : [
"#c48075"
],
"shoppable" : "1",
"inventory_status" : "1",
"shade_name" : "Kinda Sexy",
"finish_description" : "Rengi ortaya çıkaran pigmentlerle zenginleştirilmiş. Parlama yapmaz, mat bir sonuç sağlar",
"product_code" : "M2LP36",
"product_size" : "3 g",
"shade_description" : "Nötr pembe-gülrengi",
"inventory_status_message" : "",
"sku_base_id" : "2286",
"formatted_price" : "58.00 TL",
"display_order" : "0",
"formatted_unit_price" : null,
"displayable" : 4,
"sku_id" : "SKU2286",
"path" : "CAT2146PROD310SKU2286",
"sku_image" : "/images/products/spp/M2LP36.jpg",
"smoosh" : "/images/products/swatches/168x168/M2LP36.jpg",
"smoosh_thumb" : "/images/products/swatches/56x56/M2LP36.jpg",
"pro_product" : 0,
"limited_life" : 0,
"price" : "58",
"image_medium_rollover" : "/images/products/spp/M2LP36_alt.jpg",
"unit_size" : null
},
{
"uom" : null,
"finish" : "Matte",
"color" : [
"#b37468"
],
"shoppable" : "0",
"inventory_status" : "2",
"shade_name" : "Velvet Teddy",
"finish_description" : "Rengi ortaya çıkaran pigmentlerle zenginleştirilmiş. Parlama yapmaz, mat bir sonuç sağlar",
"product_code" : "M2LP37",
"product_size" : "3 g",
"shade_description" : "Koyu-ton bej",
"inventory_status_message" : "STOKTA MEVCUT DEĞİL",
"sku_base_id" : "2287",
"formatted_price" : "58.00 TL",
"display_order" : "0",
"formatted_unit_price" : null,
"displayable" : 4,
"sku_id" : "SKU2287",
"path" : "CAT2146PROD310SKU2287",
"sku_image" : "/images/products/spp/M2LP37.jpg",
"smoosh" : "/images/products/swatches/168x168/M2LP37.jpg",
"smoosh_thumb" : "/images/products/swatches/56x56/M2LP37.jpg",
"pro_product" : 0,
"limited_life" : 0,
"price" : "58",
"image_medium_rollover" : "/images/products/spp/M2LP37_alt.jpg",
"unit_size" : null
},
{
"uom" : null,
"finish" : "Satin",
"color" : [
"#761F53"
],
"shoppable" : "1",
"inventory_status" : "1",
"shade_name" : "Rebel",
"finish_description" : "Doygun renkli. Satenimsi, yarı-mat sonuç. Yoğun renk verirken nemlendir.",
"product_code" : "M3EW29",
"product_size" : "3 g",
"shade_description" : "Orta tonlarda mürdüm krem ",
"inventory_status_message" : "",
"sku_base_id" : "3060",
"formatted_price" : "58.00 TL",
"display_order" : "3",
"formatted_unit_price" : null,
"displayable" : 4,
"sku_id" : "SKU3060",
"path" : "CAT2146PROD310SKU3060",
"sku_image" : "/images/products/spp/M3EW29.jpg",
"smoosh" : "/images/products/swatches/168x168/M3EW29.jpg",
"smoosh_thumb" : "/images/products/swatches/56x56/M3EW29.jpg",
"pro_product" : 0,
"limited_life" : 0,
"price" : "58",
"image_medium_rollover" : "/images/products/spp/M3EW29_alt.jpg",
"unit_size" : null
},
{
"uom" : null,
"finish" : "Matte",
"color" : [
"#783a42"
],
"shoppable" : "1",
"inventory_status" : "1",
"shade_name" : "Diva",
"finish_description" : "Rengi ortaya çıkaran pigmentlerle zenginleştirilmiş. Parlama yapmaz, mat bir sonuç sağlar",
"product_code" : "M2LP02",
"product_size" : "3 g",
"shade_description" : "Yogun kirmizimsi-bordo",
"inventory_status_message" : "",
"sku_base_id" : "2267",
"formatted_price" : "58.00 TL",
"display_order" : "11",
"formatted_unit_price" : null,
"displayable" : 4,
"sku_id" : "SKU2267",
"path" : "CAT2146PROD310SKU2267",
"sku_image" : "/images/products/spp/M2LP02.jpg",
"smoosh" : "/images/products/swatches/168x168/M2LP02.jpg",
"smoosh_thumb" : "/images/products/swatches/56x56/M2LP02.jpg",
"pro_product" : 0,
"limited_life" : 0,
"price" : "58",
"image_medium_rollover" : "/images/products/spp/M2LP02_alt.jpg",
"unit_size" : null
}
],
"cm_name" : "Lipstick ",
"product_multicolor_type" : null,
"sku_count" : 12,
"short_desc" : "<P class=MsoNormal style=\"MARGIN: 0cm 0cm 8pt\"><FONT size=3><FONT size=2 face=Arial>Yüzlerce tonu olan Lipstick...",
"image_medium" : "/images/products/spp/M0N918.jpg",
"image_large" : "/images/products/430x817/M0N918.jpg",
"formatted_unit_price" : null,
"name" : "Lipstick",
"description" : "<P class=MsoNormal style=\"MARGIN: 0cm 0cm 8pt\"><FONT size=3><FONT size=2 face=Arial>Yüzlerce tonu olan Lipstick. M.A.C’i ünlü yapan ikonik ürün.<BR> <BR>Ürün Detayı<BR>Dudakları şekillendirmek, doldurmak ve onlara gösteriş katmak için geliştirilmiştir. Yüzlerce renk ve en trend dokular. M.A.C’i ünlü yapan ikonik ürün.<BR> <BR>Teen Vogue 2014, Okuyucu Seçimi Güzellik Ödülü: En İyi Kırmızı: Ruby Woo</FONT></FONT></P><P class=MsoNormal style=\"MARGIN: 0cm 0cm 8pt\"></P>",
"show_tabs" : 1,
"image_alt" : "Lipstick",
"price_with_tax" : "58.00 TL",
"has_top_sellers" : null,
"shaded" : 1,
"price" : "58.00 TL",
"unit_size" : null,
"image_small" : "/images/products/56x56/M0N918.jpg",
"header" : "/images/products/spp_headers/h_M0N918_216.gif"
}
}
},
"selected_sku" : null,
"cms_generated" : null
}';
$json_dizi = json_decode($json);
echo '<pre>';
print_r($json_dizi);