PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
Copy Clear
Copy Format Clear
<?php $data = '[ { "key": "contract_prices", "value": 345 }, { "key": "description", "value": 55 } ]'; $res = array_filter( json_decode($data, true), fn($el)=>$el['key']==='contract_prices' ); print_r($res[0]['value']);
Show:  
Copy Clear