1--TEST--
2Test array_unique() function : usage variations - more than 16 elements
3--CREDITS--
4Matteo Beccati
5--FILE--
6<?php
7
8$a = array (
9  0 => 'acls_channel',
10  1 => 'acls_channel',
11  2 => 'ad_zone_assoc',
12  3 => 'ad_zone_assoc',
13  4 => 'ad_zone_assoc',
14  5 => 'affiliates',
15  6 => 'affiliates',
16  7 => 'affiliates',
17  8 => 'banners',
18  9 => 'banners',
19  10 => 'banners',
20  11 => 'campaigns',
21  12 => 'campaigns',
22  13 => 'campaigns',
23  14 => 'campaigns_trackers',
24  15 => 'campaigns_trackers',
25  16 => 'campaigns_trackers',
26  17 => 'clients',
27  18 => 'clients',
28  19 => 'clients',
29  20 => 'data_intermediate_ad',
30  21 => 'data_intermediate_ad',
31  22 => 'data_summary_ad_hourly',
32  23 => 'data_summary_ad_hourly',
33  24 => 'data_summary_zone_country_daily',
34  25 => 'data_summary_zone_country_daily',
35  26 => 'data_summary_zone_country_daily',
36  27 => 'data_summary_zone_country_forecast',
37  28 => 'data_summary_zone_country_forecast',
38  29 => 'data_summary_zone_country_forecast',
39  30 => 'data_summary_zone_country_monthly',
40  31 => 'data_summary_zone_country_monthly',
41  32 => 'data_summary_zone_country_monthly',
42  33 => 'data_summary_zone_domain_page_daily',
43  34 => 'data_summary_zone_domain_page_daily',
44  35 => 'data_summary_zone_domain_page_daily',
45  36 => 'data_summary_zone_domain_page_forecast',
46  37 => 'data_summary_zone_domain_page_forecast',
47  38 => 'data_summary_zone_domain_page_forecast',
48  39 => 'data_summary_zone_domain_page_monthly',
49  40 => 'data_summary_zone_domain_page_monthly',
50  41 => 'data_summary_zone_domain_page_monthly',
51  42 => 'data_summary_zone_site_keyword_daily',
52  43 => 'data_summary_zone_site_keyword_daily',
53  44 => 'data_summary_zone_site_keyword_daily',
54  45 => 'data_summary_zone_site_keyword_forecast',
55  46 => 'data_summary_zone_site_keyword_forecast',
56  47 => 'data_summary_zone_site_keyword_forecast',
57  48 => 'data_summary_zone_site_keyword_monthly',
58  49 => 'data_summary_zone_site_keyword_monthly',
59  50 => 'data_summary_zone_site_keyword_monthly',
60  51 => 'data_summary_zone_source_daily',
61  52 => 'data_summary_zone_source_daily',
62  53 => 'data_summary_zone_source_daily',
63  54 => 'data_summary_zone_source_forecast',
64  55 => 'data_summary_zone_source_forecast',
65  56 => 'data_summary_zone_source_forecast',
66  57 => 'data_summary_zone_source_monthly',
67  58 => 'data_summary_zone_source_monthly',
68  59 => 'data_summary_zone_source_monthly',
69  60 => 'placement_zone_assoc',
70  61 => 'placement_zone_assoc',
71  62 => 'placement_zone_assoc',
72  63 => 'trackers',
73  64 => 'trackers',
74  65 => 'trackers',
75  66 => 'variables',
76  67 => 'variables',
77  68 => 'variables',
78);
79
80print_r(array_unique($a));
81?>
82--EXPECTF--
83Array
84(
85    [0] => acls_channel
86    [2] => ad_zone_assoc
87    [5] => affiliates
88    [8] => banners
89    [11] => campaigns
90    [14] => campaigns_trackers
91    [17] => clients
92    [20] => data_intermediate_ad
93    [22] => data_summary_ad_hourly
94    [24] => data_summary_zone_country_daily
95    [27] => data_summary_zone_country_forecast
96    [30] => data_summary_zone_country_monthly
97    [33] => data_summary_zone_domain_page_daily
98    [36] => data_summary_zone_domain_page_forecast
99    [39] => data_summary_zone_domain_page_monthly
100    [42] => data_summary_zone_site_keyword_daily
101    [45] => data_summary_zone_site_keyword_forecast
102    [48] => data_summary_zone_site_keyword_monthly
103    [51] => data_summary_zone_source_daily
104    [54] => data_summary_zone_source_forecast
105    [57] => data_summary_zone_source_monthly
106    [60] => placement_zone_assoc
107    [63] => trackers
108    [66] => variables
109)
110