Good day to all. Working with the Steam API, got an array of data. I displayed them on the screen with the code:
$all_items = file_get_contents("ссылка"); print_r($all_items); Received:
"items_game" { "game_info" { "first_valid_class" "1" "last_valid_class" "1000" "first_valid_item_slot" "0" "last_valid_item_slot" "15" "num_item_presets" "4" } "store_currency_pricepoints" { "10" { "GBP" "8" "EUR" "9" "RUB" "700" "BRL" "33" "JPY" "1100" "NOK" "90" "IDR" "134900" "MYR" "40" "PHP" "500" "SGD" "14" "THB" "400" "VND" "250000" "KRW" "12000" "TRY" "30" "UAH" "120" "MXN" "180" "CAD" "13" "AUD" "15" "NZD" "15" "CNY" "100" "TWD" "300" "HKD" "80" "INR" "700" "AED" "50" "SAR" "40" "ZAR" "140" "COP" "30000" "PEN" "40" "CLP" "6700" "CHF" "10" } The question is, is it possible to pull out the data and, for example, display only the data that carries the "first_valid_class" for example? I try through foreach (), but it gives an error that I enter not what I need. Can you please tell me how to get out of this array only the data that interests me?
file_get_contents. String, not a picture, soc. Some kind of network: "Here are some photos of my code!". - user207618json_decodeto help. - user207618