fork(1) download
  1. <?php
  2.  
  3. $result = [
  4. 'price' => '£30.99'
  5. ];
  6.  
  7. $price = array_pop($result['price']);
  8.  
  9. var_dump($price);
Success #stdin #stdout #stderr 0.03s 52480KB
stdin
Standard input is empty
stdout
NULL
stderr
PHP Warning:  array_pop() expects parameter 1 to be array, string given in /home/sizeTH/prog.php on line 7