3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $phones = "89521632782,89521632782,89521632782"; $q = explode(",", $phones); $q1 = array($q); $result = array_unique($q1); print_r($result); ?>
based on pdDMC
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.2.6
Array ( [0] => Array ( [0] => 89521632782 [1] => 89521632782 [2] => 89521632782 ) )
Output for hhvm-3.15.4
Notice: Array to string conversion in /in/Dem7s on line 5 Array ( [0] => Array ( [0] => 89521632782 [1] => 89521632782 [2] => 89521632782 ) )