2 /* Prototype : array array_unique(array $input)
3 * Description: Removes duplicate values from array
4 * Source code: ext/standard/array.c
8 * Passing non array values to 'input' argument of array_unique() and see
9 * that the function outputs proper warning messages wherever expected.
12 echo "*** Testing array_unique() : Passing non array values to \$input argument ***\n";
14 //get an unset variable
21 public function __toString() {
22 return "Class A object";
31 // get a resource variable
32 $fp = fopen(__FILE__
, "r");
34 // unexpected values to be passed to $input argument
73 /*22*/ @$undefined_var,
82 // loop through each element of $inputs and check the behavior of array_unique()
84 foreach($inputs as $input) {
85 echo "-- Iteration $iterator --\n";
86 var_dump( array_unique($input) );