Есть код вида
[{"brand":"Mahle","number":"LX1249","numberFix":"LX1249","description":"\u0424\u0438\u043b\u044c\u0442\u0440 \u0432\u043e\u0437\u0434\u0443\u0448\u043d\u044b\u0439 JAGUAR: X-TYPE 01-, X-TYPE Estate","availability":30,"packing":null,"deliveryPeriod":120,"deliveryPeriodMax":168,"distributorCode":null,"supplierCode":20749,"supplierColor":null,"supplierDescription":"009","itemKey":"RLPz4+4FUF0wIWM+c4b0m82R3UrEMBCFX6XMdSv5627N3V4sojeKP6AglDSJEohtSBNhEd\/dZBZx9Qm8+ZhzkhkmJx+w5hC8s3HUi7Eg5+x9C8auOrqQ3DKDhOdMBBOVfEBOlUIjGZI0eICCW+QWiW2CI4\/NBmscwc+bq93Fw+5WNo\/d\/dPNviG0a7\/r\/ZpUslC2WUN02l7WXcRGnA2bH\/PUCvXGURVxndOJulPeotNT1kIOpowek3urAxihoiN9x7YNpZIOkjH4lcFo7IvKPv2DLNS7cl5Nzrt0AMlJC86Mxq0puimnJUJZfugpb0HnGO2sD2OsT3UlGvrXXGogxX2N4fjzn1+emZwh","price":512,"weight":null,"volume":null,"groupId":0,"deliveryProbability":0,"lastUpdateTime":"2014-05-27 11:18:22","additionalPrice":0,"noReturn":1,"isSetInOnlineWh":true,"isSetInNonOnlineWh":false,"fromPublicApi":true},
{"brand":"Mann","number":"C38116","numberFix":"C38116","description":"\u0424\u0438\u043b\u044c\u0442\u0440 \u0432\u043e\u0437\u0434\u0443\u0448\u043d\u044b\u0439 Jaguar X-Type 01-10","availability":1,"packing":null,"deliveryPeriod":120,"deliveryPeriodMax":168,"distributorCode":null,"supplierCode":20749,"supplierColor":null,"supplierDescription":"009","itemKey":"proan9CrZlASV3D7Fe8EOMWRzWqEMBSFX0XuWkt+FDVv0G66mC66KEhM0uFCqiEmA1L67jXXRWeeoJuPnJP7w0m+YcsheHRxMqt1oJbsfQ3WbSZiSLguoOAjs1a0hXIgzoWtIQoiq+iChHTEnkhtrSSezZbONEKO1Yu+Zh2r9+ZtD65ivOEMjv1biGjcc9neye6Jj3\/mvRVKxakO8ZrTnbpo705nOGQOVic3JfwqAwTjbcO6RvQV54qPivXwkHqy7lNnn\/4lvb5p9HpGj2kHxWtAO1ncUsQ5pzWCEmLouKzB5BjdYvYplmy4UPGjuZYXONxrDOfn\/vwCCESVCQ==","price":589,"weight":null,"volume":null,"groupId":0,"deliveryProbability":0,"lastUpdateTime":"2014-05-27 11:19:07","additionalPrice":0,"noReturn":1,"isSetInOnlineWh":true,"isSetInNonOnlineWh":false,"fromPublicApi":true},
{"brand":"Mahle","number":"LX1249","numberFix":"LX1249","description":"\u0424\u0438\u043b\u044c\u0442\u0440 \u0432\u043e\u0437\u0434\u0443\u0448\u043d\u044b\u0439 JAGUAR: X-TYPE 01-, X-TYPE Estate","availability":5,"packing":null,"deliveryPeriod":168,"deliveryPeriodMax":216,"distributorCode":null,"supplierCode":20751,"supplierColor":null,"supplierDescription":"014","itemKey":"G\/q399T7oYz+dMONAYiyhs2R20rEMBCGX6XkupUkTdnd3O3FInqjeAAFoaRJVgZiG3IQFvHdTabILj6BNx8zfzKTmT9fJGbvHdgw6sVYIufsXEuMjTqAT7DMRJK3TAU Xlf0WOVUKjeRI2uABJr1FbpBYJnrkWmwwxhb9rrndXz\/vH2Tz0j293h8ayrr2Nz7EpJIlZZroA2h7U2cRO3HF+Fm8lHy9sWYlucvpIntUzqIyCNGS7E1pPSb4qA04ZaKjQ8c3DWNSUDngA2cPRmOPKrv0D7xQnwqcmsBBOpVlWgJmNBBTgCmnJRDJ+XZgRdc5BDvr0xjqplCcYX\/FpfpR1Pfg14\/\/\/gHrxpvY","price":544,"weight":null,"volume":null,"groupId":0,"deliveryProbability":0,"lastUpdateTime":"2014-05-27 11:40:52","additionalPrice":0,"noReturn":1,"isSetInOnlineWh":true,"isSetInNonOnlineWh":false,"fromPublicApi":true},
{"brand":"Filtron","number":"AP1931","numberFix":"AP1931","description":"\u0424\u0438\u043b\u044c\u0442\u0440 \u0432\u043e\u0437\u0434\u0443\u0448\u043d\u044b\u0439 Jaguar X-Type (CF1)","availability":7,"packing":null,"deliveryPeriod":192,"deliveryPeriodMax":240,"distributorCode":null,"supplierCode":21632,"supplierColor":null,"supplierDescription":"005","itemKey":"xokTxJXhxeZqVCIXfH2CpMWRwU7EIBCGX4Vw0mRrKLB2l6uJiV486MGDCaHAbibBllAwaYzvLkwPrr6Aly\/8PzDDP3zSpcQYwCdtZ+epmkoIO+r8YhPEDPNEFX0rTHLZKA7IsVFaJEcyghsohEcOSLwmBXK77HCNJcSRPJpzMYm8di9r9OTq7r6\/prX\/EhNY\/9C6i+Nwsx9+zEsrthObquKp5Av1bIJHp756R0t0Jnud4b0V4KyXHdt3fCC9VJIpeaC\/UmvnT6aE\/C\/pzYeBYEYIkFeqahZw2sGSE4wlz4kqLm4HXkPZkpKf7KpTywZ1Fv1fc24TqO45xe1zv74BXpiVaQ==","price":438,"weight":null,"volume":null,"groupId":0,"deliveryProbability":0,"lastUpdateTime":"2014-05-27 14:40:48","additionalPrice":0,"noReturn":1,"isSetInOnlineWh":true,"isSetInNonOnlineWh":false,"fromPublicApi":true}]
То есть как видите я выделил 4 позиции, в итоге их понятное дело больше ... Вот мне нужно вытянуть price из каждой позиции, создать массив из цен, в отдельной переменной .. я начал это реализовывать следующим образом
$p=curl_get_file_contents($urlone);
$p = str_replace(":","=>",$p);
$p = str_replace("[","",$p);
$p = str_replace("]","",$p);
$p = str_replace("},","},fff000",$p);
$p = explode(",fff000", $p);
$x=0;
foreach ($p as $key => $value) {
$p[$x] = str_replace("{","",$p[$x]);
$p[$x] = str_replace("}","",$p[$x]);
$x++;
}
То есть я просто взял этот весь текст, обработал его таким образом чтобы на выходе получился
"brand"=>"Fram","number"=>"CA9708","numberFix"=>"CA9708"
То бишь идеально работающая вставка для формирования массива. Вот и вся проблема.