<?php $result = [ 'price' => '£30.99']; $price = array_pop($result['price']); var_dump($price);
Standard input is empty
NULL
PHP Warning: array_pop() expects parameter 1 to be array, string given in /home/sizeTH/prog.php on line 7
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!