3v4l.org

run code in 300+ PHP versions simultaneously
<?php $items_thread=Array ( 0 => Array ( 'RecipientID' => 3, 'RecipientScreenname' => 'Tom L', 'RecipientFirstname' => 'Thomas', 'RecipientEmail'=> 'info@xx.com', ), 1 => Array ( 'RecipientID' => 3, 'RecipientScreenname' => 'Tom L', 'RecipientFirstname' => 'Thomas', 'RecipientEmail'=> 'info@xx.com', ), 2 => Array ( 'RecipientID'=> 1, 'RecipientScreenname' => 'Lau T', 'RecipientFirstname' => 'TK', 'RecipientEmail' => l'au@xx.co.uk', ) ) But I want to get rid of the duplicate items in the array, so I use array_unique print_r(array_unique($items_thread));
Output for 5.4.0 - 5.4.23
Parse error: syntax error, unexpected ''au@xx.co.uk'' (T_CONSTANT_ENCAPSED_STRING), expecting ')' in /in/6LmII on line 26
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /in/6LmII on line 26
Process exited with code 255.

preferences:
180.53 ms | 1395 KiB | 60 Q