3v4l.org

run code in 300+ PHP versions simultaneously
<?php $product = array( 0 => array( 'id' => '123', 'name' => 'Facebook status robot', 'description'=> 'Post your wall in your given time', 'quantity' => '1', 'unitPrice' => '120', 'taxable' => 'true' ), 1 => array( 'id' => '123', 'name' => 'Facebook status robot', 'description'=> 'Post your wall in your given time', 'quantity' => '1', 'unitPrice' => '120', 'taxable' => 'true' ), 2 => array( 'id' => '123', 'name' => 'Facebook status robot', 'description'=> 'Post your wall in your given time', 'quantity' => '1', 'unitPrice' => '120', 'taxable' => 'true' ) ); foreach($product as &$data) { unset($data['unitPrice']); unset($data['description']); } var_dump($product);

preferences:
54.74 ms | 402 KiB | 5 Q