40 |
aurelien |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
$q = strtolower($_GET["term"]);
|
|
|
4 |
if (!$q) return;
|
|
|
5 |
$items = array(
|
|
|
6 |
"Great Bittern"=>"Botaurus stellaris",
|
|
|
7 |
"Little Grebe"=>"Tachybaptus ruficollis",
|
|
|
8 |
"Black-necked Grebe"=>"Podiceps nigricollis",
|
|
|
9 |
"Little Bittern"=>"Ixobrychus minutus",
|
|
|
10 |
"Black-crowned Night Heron"=>"Nycticorax nycticorax",
|
|
|
11 |
"Purple Heron"=>"Ardea purpurea",
|
|
|
12 |
"White Stork"=>"Ciconia ciconia",
|
|
|
13 |
"Spoonbill"=>"Platalea leucorodia",
|
|
|
14 |
"Red-crested Pochard"=>"Netta rufina",
|
|
|
15 |
"Common Eider"=>"Somateria mollissima",
|
|
|
16 |
"Red Kite"=>"Milvus milvus",
|
|
|
17 |
"Hen Harrier"=>"Circus cyaneus",
|
|
|
18 |
"Montagu`s Harrier"=>"Circus pygargus",
|
|
|
19 |
"Black Grouse"=>"Tetrao tetrix",
|
|
|
20 |
"Grey Partridge"=>"Perdix perdix",
|
|
|
21 |
"Spotted Crake"=>"Porzana porzana",
|
|
|
22 |
"Corncrake"=>"Crex crex",
|
|
|
23 |
"Common Crane"=>"Grus grus",
|
|
|
24 |
"Avocet"=>"Recurvirostra avosetta",
|
|
|
25 |
"Stone Curlew"=>"Burhinus oedicnemus",
|
|
|
26 |
"Common Ringed Plover"=>"Charadrius hiaticula",
|
|
|
27 |
"Kentish Plover"=>"Charadrius alexandrinus",
|
|
|
28 |
"Ruff"=>"Philomachus pugnax",
|
|
|
29 |
"Common Snipe"=>"Gallinago gallinago",
|
|
|
30 |
"Black-tailed Godwit"=>"Limosa limosa",
|
|
|
31 |
"Common Redshank"=>"Tringa totanus",
|
|
|
32 |
"Sandwich Tern"=>"Sterna sandvicensis",
|
|
|
33 |
"Common Tern"=>"Sterna hirundo",
|
|
|
34 |
"Arctic Tern"=>"Sterna paradisaea",
|
|
|
35 |
"Little Tern"=>"Sternula albifrons",
|
|
|
36 |
"Black Tern"=>"Chlidonias niger",
|
|
|
37 |
"Barn Owl"=>"Tyto alba",
|
|
|
38 |
"Little Owl"=>"Athene noctua",
|
|
|
39 |
"Short-eared Owl"=>"Asio flammeus",
|
|
|
40 |
"European Nightjar"=>"Caprimulgus europaeus",
|
|
|
41 |
"Common Kingfisher"=>"Alcedo atthis",
|
|
|
42 |
"Eurasian Hoopoe"=>"Upupa epops",
|
|
|
43 |
"Eurasian Wryneck"=>"Jynx torquilla",
|
|
|
44 |
"European Green Woodpecker"=>"Picus viridis",
|
|
|
45 |
"Crested Lark"=>"Galerida cristata",
|
|
|
46 |
"White-headed Duck"=>"Oxyura leucocephala",
|
|
|
47 |
"Pale-bellied Brent Goose"=>"Branta hrota",
|
|
|
48 |
"Tawny Pipit"=>"Anthus campestris",
|
|
|
49 |
"Whinchat"=>"Saxicola rubetra",
|
|
|
50 |
"European Stonechat"=>"Saxicola rubicola",
|
|
|
51 |
"Northern Wheatear"=>"Oenanthe oenanthe",
|
|
|
52 |
"Savi`s Warbler"=>"Locustella luscinioides",
|
|
|
53 |
"Sedge Warbler"=>"Acrocephalus schoenobaenus",
|
|
|
54 |
"Great Reed Warbler"=>"Acrocephalus arundinaceus",
|
|
|
55 |
"Bearded Reedling"=>"Panurus biarmicus",
|
|
|
56 |
"Red-backed Shrike"=>"Lanius collurio",
|
|
|
57 |
"Great Grey Shrike"=>"Lanius excubitor",
|
|
|
58 |
"Woodchat Shrike"=>"Lanius senator",
|
|
|
59 |
"Common Raven"=>"Corvus corax",
|
|
|
60 |
"Yellowhammer"=>"Emberiza citrinella",
|
|
|
61 |
"Ortolan Bunting"=>"Emberiza hortulana",
|
|
|
62 |
"Corn Bunting"=>"Emberiza calandra",
|
|
|
63 |
"Great Cormorant"=>"Phalacrocorax carbo",
|
|
|
64 |
"Hawfinch"=>"Coccothraustes coccothraustes",
|
|
|
65 |
"Common Shelduck"=>"Tadorna tadorna",
|
|
|
66 |
"Bluethroat"=>"Luscinia svecica",
|
|
|
67 |
"Grey Heron"=>"Ardea cinerea",
|
|
|
68 |
"Barn Swallow"=>"Hirundo rustica",
|
|
|
69 |
"Hooded Crow"=>"Corvus cornix",
|
|
|
70 |
"Dunlin"=>"Calidris alpina",
|
|
|
71 |
"Eurasian Pied Flycatcher"=>"Ficedula hypoleuca",
|
|
|
72 |
"Eurasian Nuthatch"=>"Sitta europaea",
|
|
|
73 |
"Short-toed Tree Creeper"=>"Certhia brachydactyla",
|
|
|
74 |
"Wood Lark"=>"Lullula arborea",
|
|
|
75 |
"Tree Pipit"=>"Anthus trivialis",
|
|
|
76 |
"Eurasian Hobby"=>"Falco subbuteo",
|
|
|
77 |
"Marsh Warbler"=>"Acrocephalus palustris",
|
|
|
78 |
"Wood Sandpiper"=>"Tringa glareola",
|
|
|
79 |
"Tawny Owl"=>"Strix aluco",
|
|
|
80 |
"Lesser Whitethroat"=>"Sylvia curruca",
|
|
|
81 |
"Barnacle Goose"=>"Branta leucopsis",
|
|
|
82 |
"Common Goldeneye"=>"Bucephala clangula",
|
|
|
83 |
"Western Marsh Harrier"=>"Circus aeruginosus",
|
|
|
84 |
"Common Buzzard"=>"Buteo buteo",
|
|
|
85 |
"Sanderling"=>"Calidris alba",
|
|
|
86 |
"Little Gull"=>"Larus minutus",
|
|
|
87 |
"Eurasian Magpie"=>"Pica pica",
|
|
|
88 |
"Willow Warbler"=>"Phylloscopus trochilus",
|
|
|
89 |
"Wood Warbler"=>"Phylloscopus sibilatrix",
|
|
|
90 |
"Great Crested Grebe"=>"Podiceps cristatus",
|
|
|
91 |
"Eurasian Jay"=>"Garrulus glandarius",
|
|
|
92 |
"Common Redstart"=>"Phoenicurus phoenicurus",
|
|
|
93 |
"Blue-headed Wagtail"=>"Motacilla flava",
|
|
|
94 |
"Common Swift"=>"Apus apus",
|
|
|
95 |
"Marsh Tit"=>"Poecile palustris",
|
|
|
96 |
"Goldcrest"=>"Regulus regulus",
|
|
|
97 |
"European Golden Plover"=>"Pluvialis apricaria",
|
|
|
98 |
"Eurasian Bullfinch"=>"Pyrrhula pyrrhula",
|
|
|
99 |
"Common Whitethroat"=>"Sylvia communis",
|
|
|
100 |
"Meadow Pipit"=>"Anthus pratensis",
|
|
|
101 |
"Greylag Goose"=>"Anser anser",
|
|
|
102 |
"Spotted Flycatcher"=>"Muscicapa striata",
|
|
|
103 |
"European Greenfinch"=>"Carduelis chloris",
|
|
|
104 |
"Common Greenshank"=>"Tringa nebularia",
|
|
|
105 |
"Great Spotted Woodpecker"=>"Dendrocopos major",
|
|
|
106 |
"Greater Canada Goose"=>"Branta canadensis",
|
|
|
107 |
"Mistle Thrush"=>"Turdus viscivorus",
|
|
|
108 |
"Great Black-backed Gull"=>"Larus marinus",
|
|
|
109 |
"Goosander"=>"Mergus merganser",
|
|
|
110 |
"Great Egret"=>"Casmerodius albus",
|
|
|
111 |
"Northern Goshawk"=>"Accipiter gentilis",
|
|
|
112 |
"Dunnock"=>"Prunella modularis",
|
|
|
113 |
"Stock Dove"=>"Columba oenas",
|
|
|
114 |
"Common Wood Pigeon"=>"Columba palumbus",
|
|
|
115 |
"Eurasian Woodcock"=>"Scolopax rusticola",
|
|
|
116 |
"House Sparrow"=>"Passer domesticus",
|
|
|
117 |
"Common House Martin"=>"Delichon urbicum",
|
|
|
118 |
"Red Knot"=>"Calidris canutus",
|
|
|
119 |
"Western Jackdaw"=>"Corvus monedula",
|
|
|
120 |
"Brambling"=>"Fringilla montifringilla",
|
|
|
121 |
"Northern Lapwing"=>"Vanellus vanellus",
|
|
|
122 |
"European Reed Warbler"=>"Acrocephalus scirpaceus",
|
|
|
123 |
"Lesser Black-backed Gull"=>"Larus fuscus",
|
|
|
124 |
"Little Egret"=>"Egretta garzetta",
|
|
|
125 |
"Little Stint"=>"Calidris minuta",
|
|
|
126 |
"Common Linnet"=>"Carduelis cannabina",
|
|
|
127 |
"Mute Swan"=>"Cygnus olor",
|
|
|
128 |
"Common Cuckoo"=>"Cuculus canorus",
|
|
|
129 |
"Black-headed Gull"=>"Larus ridibundus",
|
|
|
130 |
"Greater White-fronted Goose"=>"Anser albifrons",
|
|
|
131 |
"Great Tit"=>"Parus major",
|
|
|
132 |
"Redwing"=>"Turdus iliacus",
|
|
|
133 |
"Gadwall"=>"Anas strepera",
|
|
|
134 |
"Fieldfare"=>"Turdus pilaris",
|
|
|
135 |
"Tufted Duck"=>"Aythya fuligula",
|
|
|
136 |
"Crested Tit"=>"Lophophanes cristatus",
|
|
|
137 |
"Willow Tit"=>"Poecile montanus",
|
|
|
138 |
"Eurasian Coot"=>"Fulica atra",
|
|
|
139 |
"Common Blackbird"=>"Turdus merula",
|
|
|
140 |
"Smew"=>"Mergus albellus",
|
|
|
141 |
"Common Sandpiper"=>"Actitis hypoleucos",
|
|
|
142 |
"Sand Martin"=>"Riparia riparia",
|
|
|
143 |
"Purple Sandpiper"=>"Calidris maritima",
|
|
|
144 |
"Northern Pintail"=>"Anas acuta",
|
|
|
145 |
"Blue Tit"=>"Cyanistes caeruleus",
|
|
|
146 |
"European Goldfinch"=>"Carduelis carduelis",
|
|
|
147 |
"Eurasian Whimbrel"=>"Numenius phaeopus",
|
|
|
148 |
"Common Reed Bunting"=>"Emberiza schoeniclus",
|
|
|
149 |
"Eurasian Tree Sparrow"=>"Passer montanus",
|
|
|
150 |
"Rook"=>"Corvus frugilegus",
|
|
|
151 |
"European Robin"=>"Erithacus rubecula",
|
|
|
152 |
"Bar-tailed Godwit"=>"Limosa lapponica",
|
|
|
153 |
"Dark-bellied Brent Goose"=>"Branta bernicla",
|
|
|
154 |
"Eurasian Oystercatcher"=>"Haematopus ostralegus",
|
|
|
155 |
"Eurasian Siskin"=>"Carduelis spinus",
|
|
|
156 |
"Northern Shoveler"=>"Anas clypeata",
|
|
|
157 |
"Eurasian Wigeon"=>"Anas penelope",
|
|
|
158 |
"Eurasian Sparrow Hawk"=>"Accipiter nisus",
|
|
|
159 |
"Icterine Warbler"=>"Hippolais icterina",
|
|
|
160 |
"Common Starling"=>"Sturnus vulgaris",
|
|
|
161 |
"Long-tailed Tit"=>"Aegithalos caudatus",
|
|
|
162 |
"Ruddy Turnstone"=>"Arenaria interpres",
|
|
|
163 |
"Mew Gull"=>"Larus canus",
|
|
|
164 |
"Common Pochard"=>"Aythya ferina",
|
|
|
165 |
"Common Chiffchaff"=>"Phylloscopus collybita",
|
|
|
166 |
"Greater Scaup"=>"Aythya marila",
|
|
|
167 |
"Common Kestrel"=>"Falco tinnunculus",
|
|
|
168 |
"Garden Warbler"=>"Sylvia borin",
|
|
|
169 |
"Eurasian Collared Dove"=>"Streptopelia decaocto",
|
|
|
170 |
"Eurasian Skylark"=>"Alauda arvensis",
|
|
|
171 |
"Common Chaffinch"=>"Fringilla coelebs",
|
|
|
172 |
"Common Moorhen"=>"Gallinula chloropus",
|
|
|
173 |
"Water Pipit"=>"Anthus spinoletta",
|
|
|
174 |
"Mallard"=>"Anas platyrhynchos",
|
|
|
175 |
"Winter Wren"=>"Troglodytes troglodytes",
|
|
|
176 |
"Common Teal"=>"Anas crecca",
|
|
|
177 |
"Green Sandpiper"=>"Tringa ochropus",
|
|
|
178 |
"White Wagtail"=>"Motacilla alba",
|
|
|
179 |
"Eurasian Curlew"=>"Numenius arquata",
|
|
|
180 |
"Song Thrush"=>"Turdus philomelos",
|
|
|
181 |
"European Herring Gull"=>"Larus argentatus",
|
|
|
182 |
"Grey Plover"=>"Pluvialis squatarola",
|
|
|
183 |
"Carrion Crow"=>"Corvus corone",
|
|
|
184 |
"Coal Tit"=>"Periparus ater",
|
|
|
185 |
"Spotted Redshank"=>"Tringa erythropus",
|
|
|
186 |
"Blackcap"=>"Sylvia atricapilla",
|
|
|
187 |
"Egyptian Vulture"=>"Neophron percnopterus",
|
|
|
188 |
"Razorbill"=>"Alca torda",
|
|
|
189 |
"Alpine Swift"=>"Apus melba",
|
|
|
190 |
"Long-legged Buzzard"=>"Buteo rufinus",
|
|
|
191 |
"Audouin`s Gull"=>"Larus audouinii",
|
|
|
192 |
"Balearic Shearwater"=>"Puffinus mauretanicus",
|
|
|
193 |
"Upland Sandpiper"=>"Bartramia longicauda",
|
|
|
194 |
"Greater Spotted Eagle"=>"Aquila clanga",
|
|
|
195 |
"Ring Ouzel"=>"Turdus torquatus",
|
|
|
196 |
"Yellow-browed Warbler"=>"Phylloscopus inornatus",
|
|
|
197 |
"Blue Rock Thrush"=>"Monticola solitarius",
|
|
|
198 |
"Buff-breasted Sandpiper"=>"Tryngites subruficollis",
|
|
|
199 |
"Jack Snipe"=>"Lymnocryptes minimus",
|
|
|
200 |
"White-rumped Sandpiper"=>"Calidris fuscicollis",
|
|
|
201 |
"Ruddy Shelduck"=>"Tadorna ferruginea",
|
|
|
202 |
"Cetti's Warbler"=>"Cettia cetti",
|
|
|
203 |
"Citrine Wagtail"=>"Motacilla citreola",
|
|
|
204 |
"Roseate Tern"=>"Sterna dougallii",
|
|
|
205 |
"Black-legged Kittiwake"=>"Rissa tridactyla",
|
|
|
206 |
"Pygmy Cormorant"=>"Phalacrocorax pygmeus",
|
|
|
207 |
"Booted Eagle"=>"Aquila pennata",
|
|
|
208 |
"Lesser White-fronted Goose"=>"Anser erythropus",
|
|
|
209 |
"Little Bunting"=>"Emberiza pusilla",
|
|
|
210 |
"Eleonora's Falcon"=>"Falco eleonorae",
|
|
|
211 |
"European Serin"=>"Serinus serinus",
|
|
|
212 |
"Twite"=>"Carduelis flavirostris",
|
|
|
213 |
"Yellow-legged Gull"=>"Larus michahellis",
|
|
|
214 |
"Gyr Falcon"=>"Falco rusticolus",
|
|
|
215 |
"Greenish Warbler"=>"Phylloscopus trochiloides",
|
|
|
216 |
"Red-necked Phalarope"=>"Phalaropus lobatus",
|
|
|
217 |
"Mealy Redpoll"=>"Carduelis flammea",
|
|
|
218 |
"Glaucous Gull"=>"Larus hyperboreus",
|
|
|
219 |
"Great Skua"=>"Stercorarius skua",
|
|
|
220 |
"Great Bustard"=>"Otis tarda",
|
|
|
221 |
"Velvet Scoter"=>"Melanitta fusca",
|
|
|
222 |
"Pine Grosbeak"=>"Pinicola enucleator",
|
|
|
223 |
"House Crow"=>"Corvus splendens",
|
|
|
224 |
"Hume`s Leaf Warbler"=>"Phylloscopus humei",
|
|
|
225 |
"Great Northern Loon"=>"Gavia immer",
|
|
|
226 |
"Long-tailed Duck"=>"Clangula hyemalis",
|
|
|
227 |
"Lapland Longspur"=>"Calcarius lapponicus",
|
|
|
228 |
"Northern Gannet"=>"Morus bassanus",
|
|
|
229 |
"Eastern Imperial Eagle"=>"Aquila heliaca",
|
|
|
230 |
"Little Auk"=>"Alle alle",
|
|
|
231 |
"Lesser Spotted Woodpecker"=>"Dendrocopos minor",
|
|
|
232 |
"Iceland Gull"=>"Larus glaucoides",
|
|
|
233 |
"Parasitic Jaeger"=>"Stercorarius parasiticus",
|
|
|
234 |
"Bewick`s Swan"=>"Cygnus bewickii",
|
|
|
235 |
"Little Bustard"=>"Tetrax tetrax",
|
|
|
236 |
"Little Crake"=>"Porzana parva",
|
|
|
237 |
"Baillon`s Crake"=>"Porzana pusilla",
|
|
|
238 |
"Long-tailed Jaeger"=>"Stercorarius longicaudus",
|
|
|
239 |
"King Eider"=>"Somateria spectabilis",
|
|
|
240 |
"Greater Short-toed Lark"=>"Calandrella brachydactyla",
|
|
|
241 |
"Houbara Bustard"=>"Chlamydotis undulata",
|
|
|
242 |
"Curlew Sandpiper"=>"Calidris ferruginea",
|
|
|
243 |
"Common Crossbill"=>"Loxia curvirostra",
|
|
|
244 |
"European Shag"=>"Phalacrocorax aristotelis",
|
|
|
245 |
"Horned Grebe"=>"Podiceps auritus",
|
|
|
246 |
"Common Quail"=>"Coturnix coturnix",
|
|
|
247 |
"Bearded Vulture"=>"Gypaetus barbatus",
|
|
|
248 |
"Lanner Falcon"=>"Falco biarmicus",
|
|
|
249 |
"Middle Spotted Woodpecker"=>"Dendrocopos medius",
|
|
|
250 |
"Pomarine Jaeger"=>"Stercorarius pomarinus",
|
|
|
251 |
"Red-breasted Merganser"=>"Mergus serrator",
|
|
|
252 |
"Eurasian Black Vulture"=>"Aegypius monachus",
|
|
|
253 |
"Eurasian Dotterel"=>"Charadrius morinellus",
|
|
|
254 |
"Common Nightingale"=>"Luscinia megarhynchos",
|
|
|
255 |
"Northern willow warbler"=>"Phylloscopus trochilus acredula",
|
|
|
256 |
"Manx Shearwater"=>"Puffinus puffinus",
|
|
|
257 |
"Northern Fulmar"=>"Fulmarus glacialis",
|
|
|
258 |
"Eurasian Eagle Owl"=>"Bubo bubo",
|
|
|
259 |
"Orphean Warbler"=>"Sylvia hortensis",
|
|
|
260 |
"Melodious Warbler"=>"Hippolais polyglotta",
|
|
|
261 |
"Pallas's Leaf Warbler"=>"Phylloscopus proregulus",
|
|
|
262 |
"Atlantic Puffin"=>"Fratercula arctica",
|
|
|
263 |
"Black-throated Loon"=>"Gavia arctica",
|
|
|
264 |
"Bohemian Waxwing"=>"Bombycilla garrulus",
|
|
|
265 |
"Marsh Sandpiper"=>"Tringa stagnatilis",
|
|
|
266 |
"Great Snipe"=>"Gallinago media",
|
|
|
267 |
"Squacco Heron"=>"Ardeola ralloides",
|
|
|
268 |
"Long-eared Owl"=>"Asio otus",
|
|
|
269 |
"Caspian Tern"=>"Hydroprogne caspia",
|
|
|
270 |
"Red-breasted Goose"=>"Branta ruficollis",
|
|
|
271 |
"Red-throated Loon"=>"Gavia stellata",
|
|
|
272 |
"Common Rosefinch"=>"Carpodacus erythrinus",
|
|
|
273 |
"Red-footed Falcon"=>"Falco vespertinus",
|
|
|
274 |
"Ross's Goose"=>"Anser rossii",
|
|
|
275 |
"Red Phalarope"=>"Phalaropus fulicarius",
|
|
|
276 |
"Pied Wagtail"=>"Motacilla yarrellii",
|
|
|
277 |
"Rose-coloured Starling"=>"Sturnus roseus",
|
|
|
278 |
"Rough-legged Buzzard"=>"Buteo lagopus",
|
|
|
279 |
"Saker Falcon"=>"Falco cherrug",
|
|
|
280 |
"European Roller"=>"Coracias garrulus",
|
|
|
281 |
"Short-toed Eagle"=>"Circaetus gallicus",
|
|
|
282 |
"Peregrine Falcon"=>"Falco peregrinus",
|
|
|
283 |
"Merlin"=>"Falco columbarius",
|
|
|
284 |
"Snow Goose"=>"Anser caerulescens",
|
|
|
285 |
"Snowy Owl"=>"Bubo scandiacus",
|
|
|
286 |
"Snow Bunting"=>"Plectrophenax nivalis",
|
|
|
287 |
"Common Grasshopper Warbler"=>"Locustella naevia",
|
|
|
288 |
"Golden Eagle"=>"Aquila chrysaetos",
|
|
|
289 |
"Black-winged Stilt"=>"Himantopus himantopus",
|
|
|
290 |
"Steppe Eagle"=>"Aquila nipalensis",
|
|
|
291 |
"Pallid Harrier"=>"Circus macrourus",
|
|
|
292 |
"European Storm-petrel"=>"Hydrobates pelagicus",
|
|
|
293 |
"Horned Lark"=>"Eremophila alpestris",
|
|
|
294 |
"Eurasian Treecreeper"=>"Certhia familiaris",
|
|
|
295 |
"Taiga Bean Goose"=>"Anser fabalis",
|
|
|
296 |
"Temminck`s Stint"=>"Calidris temminckii",
|
|
|
297 |
"Terek Sandpiper"=>"Xenus cinereus",
|
|
|
298 |
"Tundra Bean Goose"=>"Anser serrirostris",
|
|
|
299 |
"European Turtle Dove"=>"Streptopelia turtur",
|
|
|
300 |
"Leach`s Storm-petrel"=>"Oceanodroma leucorhoa",
|
|
|
301 |
"Eurasian Griffon Vulture"=>"Gyps fulvus",
|
|
|
302 |
"Paddyfield Warbler"=>"Acrocephalus agricola",
|
|
|
303 |
"Osprey"=>"Pandion haliaetus",
|
|
|
304 |
"Firecrest"=>"Regulus ignicapilla",
|
|
|
305 |
"Water Rail"=>"Rallus aquaticus",
|
|
|
306 |
"European Honey Buzzard"=>"Pernis apivorus",
|
|
|
307 |
"Eurasian Golden Oriole"=>"Oriolus oriolus",
|
|
|
308 |
"Whooper Swan"=>"Cygnus cygnus",
|
|
|
309 |
"Two-barred Crossbill"=>"Loxia leucoptera",
|
|
|
310 |
"White-tailed Eagle"=>"Haliaeetus albicilla",
|
|
|
311 |
"Atlantic Murre"=>"Uria aalge",
|
|
|
312 |
"Garganey"=>"Anas querquedula",
|
|
|
313 |
"Black Redstart"=>"Phoenicurus ochruros",
|
|
|
314 |
"Common Scoter"=>"Melanitta nigra",
|
|
|
315 |
"Rock Pipit"=>"Anthus petrosus",
|
|
|
316 |
"Lesser Spotted Eagle"=>"Aquila pomarina",
|
|
|
317 |
"Cattle Egret"=>"Bubulcus ibis",
|
|
|
318 |
"White-winged Black Tern"=>"Chlidonias leucopterus",
|
|
|
319 |
"Black Stork"=>"Ciconia nigra",
|
|
|
320 |
"Mediterranean Gull"=>"Larus melanocephalus",
|
|
|
321 |
"Black Kite"=>"Milvus migrans",
|
|
|
322 |
"Yellow Wagtail"=>"Motacilla flavissima",
|
|
|
323 |
"Red-necked Grebe"=>"Podiceps grisegena",
|
|
|
324 |
"Gull-billed Tern"=>"Gelochelidon nilotica",
|
|
|
325 |
"Pectoral Sandpiper"=>"Calidris melanotos",
|
|
|
326 |
"Barred Warbler"=>"Sylvia nisoria",
|
|
|
327 |
"Red-throated Pipit"=>"Anthus cervinus",
|
|
|
328 |
"Grey Wagtail"=>"Motacilla cinerea",
|
|
|
329 |
"Richard`s Pipit"=>"Anthus richardi",
|
|
|
330 |
"Black Woodpecker"=>"Dryocopus martius",
|
|
|
331 |
"Little Ringed Plover"=>"Charadrius dubius",
|
|
|
332 |
"Whiskered Tern"=>"Chlidonias hybrida",
|
|
|
333 |
"Lesser Redpoll"=>"Carduelis cabaret",
|
|
|
334 |
"Pallas' Bunting"=>"Emberiza pallasi",
|
|
|
335 |
"Ferruginous Duck"=>"Aythya nyroca",
|
|
|
336 |
"Whistling Swan"=>"Cygnus columbianus",
|
|
|
337 |
"Black Brant"=>"Branta nigricans",
|
|
|
338 |
"Marbled Teal"=>"Marmaronetta angustirostris",
|
|
|
339 |
"Canvasback"=>"Aythya valisineria",
|
|
|
340 |
"Redhead"=>"Aythya americana",
|
|
|
341 |
"Lesser Scaup"=>"Aythya affinis",
|
|
|
342 |
"Steller`s Eider"=>"Polysticta stelleri",
|
|
|
343 |
"Spectacled Eider"=>"Somateria fischeri",
|
|
|
344 |
"Harlequin Duck"=>"Histronicus histrionicus",
|
|
|
345 |
"Black Scoter"=>"Melanitta americana",
|
|
|
346 |
"Surf Scoter"=>"Melanitta perspicillata",
|
|
|
347 |
"Barrow`s Goldeneye"=>"Bucephala islandica",
|
|
|
348 |
"Falcated Duck"=>"Anas falcata",
|
|
|
349 |
"American Wigeon"=>"Anas americana",
|
|
|
350 |
"Blue-winged Teal"=>"Anas discors",
|
|
|
351 |
"American Black Duck"=>"Anas rubripes",
|
|
|
352 |
"Baikal Teal"=>"Anas formosa",
|
|
|
353 |
"Green-Winged Teal"=>"Anas carolinensis",
|
|
|
354 |
"Hazel Grouse"=>"Bonasa bonasia",
|
|
|
355 |
"Rock Partridge"=>"Alectoris graeca",
|
|
|
356 |
"Red-legged Partridge"=>"Alectoris rufa",
|
|
|
357 |
"Yellow-billed Loon"=>"Gavia adamsii",
|
|
|
358 |
"Cory`s Shearwater"=>"Calonectris borealis",
|
|
|
359 |
"Madeiran Storm-Petrel"=>"Oceanodroma castro",
|
|
|
360 |
"Great White Pelican"=>"Pelecanus onocrotalus",
|
|
|
361 |
"Dalmatian Pelican"=>"Pelecanus crispus",
|
|
|
362 |
"American Bittern"=>"Botaurus lentiginosus",
|
|
|
363 |
"Glossy Ibis"=>"Plegadis falcinellus",
|
|
|
364 |
"Spanish Imperial Eagle"=>"Aquila adalberti",
|
|
|
365 |
"Lesser Kestrel"=>"Falco naumanni",
|
|
|
366 |
"Houbara Bustard"=>"Chlamydotis undulata",
|
|
|
367 |
"Crab-Plover"=>"Dromas ardeola",
|
|
|
368 |
"Cream-coloured Courser"=>"Cursorius cursor",
|
|
|
369 |
"Collared Pratincole"=>"Glareola pratincola",
|
|
|
370 |
"Black-winged Pratincole"=>"Glareola nordmanni",
|
|
|
371 |
"Killdeer"=>"Charadrius vociferus",
|
|
|
372 |
"Lesser Sand Plover"=>"Charadrius mongolus",
|
|
|
373 |
"Greater Sand Plover"=>"Charadrius leschenaultii",
|
|
|
374 |
"Caspian Plover"=>"Charadrius asiaticus",
|
|
|
375 |
"American Golden Plover"=>"Pluvialis dominica",
|
|
|
376 |
"Pacific Golden Plover"=>"Pluvialis fulva",
|
|
|
377 |
"Sharp-tailed Sandpiper"=>"Calidris acuminata",
|
|
|
378 |
"Broad-billed Sandpiper"=>"Limicola falcinellus",
|
|
|
379 |
"Spoon-Billed Sandpiper"=>"Eurynorhynchus pygmaeus",
|
|
|
380 |
"Short-Billed Dowitcher"=>"Limnodromus griseus",
|
|
|
381 |
"Long-billed Dowitcher"=>"Limnodromus scolopaceus",
|
|
|
382 |
"Hudsonian Godwit"=>"Limosa haemastica",
|
|
|
383 |
"Little Curlew"=>"Numenius minutus",
|
|
|
384 |
"Lesser Yellowlegs"=>"Tringa flavipes",
|
|
|
385 |
"Wilson`s Phalarope"=>"Phalaropus tricolor",
|
|
|
386 |
"Pallas`s Gull"=>"Larus ichthyaetus",
|
|
|
387 |
"Laughing Gull"=>"Larus atricilla",
|
|
|
388 |
"Franklin`s Gull"=>"Larus pipixcan",
|
|
|
389 |
"Bonaparte`s Gull"=>"Larus philadelphia",
|
|
|
390 |
"Ring-billed Gull"=>"Larus delawarensis",
|
|
|
391 |
"American Herring Gull"=>"Larus smithsonianus",
|
|
|
392 |
"Caspian Gull"=>"Larus cachinnans",
|
|
|
393 |
"Ivory Gull"=>"Pagophila eburnea",
|
|
|
394 |
"Royal Tern"=>"Sterna maxima",
|
|
|
395 |
"Brünnich`s Murre"=>"Uria lomvia",
|
|
|
396 |
"Crested Auklet"=>"Aethia cristatella",
|
|
|
397 |
"Parakeet Auklet"=>"Cyclorrhynchus psittacula",
|
|
|
398 |
"Tufted Puffin"=>"Lunda cirrhata",
|
|
|
399 |
"Laughing Dove"=>"Streptopelia senegalensis",
|
|
|
400 |
"Great Spotted Cuckoo"=>"Clamator glandarius",
|
|
|
401 |
"Great Grey Owl"=>"Strix nebulosa",
|
|
|
402 |
"Tengmalm`s Owl"=>"Aegolius funereus",
|
|
|
403 |
"Red-Necked Nightjar"=>"Caprimulgus ruficollis",
|
|
|
404 |
"Chimney Swift"=>"Chaetura pelagica",
|
|
|
405 |
"Green Bea-Eater"=>"Merops orientalis",
|
|
|
406 |
"Grey-headed Woodpecker"=>"Picus canus",
|
|
|
407 |
"Lesser Short-Toed Lark"=>"Calandrella rufescens",
|
|
|
408 |
"Eurasian Crag Martin"=>"Hirundo rupestris",
|
|
|
409 |
"Red-rumped Swallow"=>"Cecropis daurica",
|
|
|
410 |
"Blyth`s Pipit"=>"Anthus godlewskii",
|
|
|
411 |
"Pechora Pipit"=>"Anthus gustavi",
|
|
|
412 |
"Grey-headed Wagtail"=>"Motacilla thunbergi",
|
|
|
413 |
"Yellow-Headed Wagtail"=>"Motacilla lutea",
|
|
|
414 |
"White-throated Dipper"=>"Cinclus cinclus",
|
|
|
415 |
"Rufous-Tailed Scrub Robin"=>"Cercotrichas galactotes",
|
|
|
416 |
"Thrush Nightingale"=>"Luscinia luscinia",
|
|
|
417 |
"White-throated Robin"=>"Irania gutturalis",
|
|
|
418 |
"Caspian Stonechat"=>"Saxicola maura variegata",
|
|
|
419 |
"Western Black-eared Wheatear"=>"Oenanthe hispanica",
|
|
|
420 |
"Rufous-tailed Rock Thrush"=>"Monticola saxatilis",
|
|
|
421 |
"Red-throated Thrush/Black-throated"=>"Turdus ruficollis",
|
|
|
422 |
"American Robin"=>"Turdus migratorius",
|
|
|
423 |
"Zitting Cisticola"=>"Cisticola juncidis",
|
|
|
424 |
"Lanceolated Warbler"=>"Locustella lanceolata",
|
|
|
425 |
"River Warbler"=>"Locustella fluviatilis",
|
|
|
426 |
"Blyth`s Reed Warbler"=>"Acrocephalus dumetorum",
|
|
|
427 |
"Caspian Reed Warbler"=>"Acrocephalus fuscus",
|
|
|
428 |
"Aquatic Warbler"=>"Acrocephalus paludicola",
|
|
|
429 |
"Booted Warbler"=>"Acrocephalus caligatus",
|
|
|
430 |
"Marmora's Warbler"=>"Sylvia sarda",
|
|
|
431 |
"Dartford Warbler"=>"Sylvia undata",
|
|
|
432 |
"Subalpine Warbler"=>"Sylvia cantillans",
|
|
|
433 |
"Ménétries's Warbler"=>"Sylvia mystacea",
|
|
|
434 |
"Rüppel's Warbler"=>"Sylvia rueppelli",
|
|
|
435 |
"Asian Desert Warbler"=>"Sylvia nana",
|
|
|
436 |
"Western Orphean Warbler"=>"Sylvia hortensis hortensis",
|
|
|
437 |
"Arctic Warbler"=>"Phylloscopus borealis",
|
|
|
438 |
"Radde`s Warbler"=>"Phylloscopus schwarzi",
|
|
|
439 |
"Western Bonelli`s Warbler"=>"Phylloscopus bonelli",
|
|
|
440 |
"Red-breasted Flycatcher"=>"Ficedula parva",
|
|
|
441 |
"Eurasian Penduline Tit"=>"Remiz pendulinus",
|
|
|
442 |
"Daurian Shrike"=>"Lanius isabellinus",
|
|
|
443 |
"Long-Tailed Shrike"=>"Lanius schach",
|
|
|
444 |
"Lesser Grey Shrike"=>"Lanius minor",
|
|
|
445 |
"Southern Grey Shrike"=>"Lanius meridionalis",
|
|
|
446 |
"Masked Shrike"=>"Lanius nubicus",
|
|
|
447 |
"Spotted Nutcracker"=>"Nucifraga caryocatactes",
|
|
|
448 |
"Daurian Jackdaw"=>"Corvus dauuricus",
|
|
|
449 |
"Purple-Backed Starling"=>"Sturnus sturninus",
|
|
|
450 |
"Red-Fronted Serin"=>"Serinus pusillus",
|
|
|
451 |
"Arctic Redpoll"=>"Carduelis hornemanni",
|
|
|
452 |
"Scottish Crossbill"=>"Loxia scotica",
|
|
|
453 |
"Parrot Crossbill"=>"Loxia pytyopsittacus",
|
|
|
454 |
"Black-faced Bunting"=>"Emberiza spodocephala",
|
|
|
455 |
"Pink-footed Goose"=>"Anser brachyrhynchus",
|
|
|
456 |
"Black-winged Kite"=>"Elanus caeruleus",
|
|
|
457 |
"European Bee-eater"=>"Merops apiaster",
|
|
|
458 |
"Sabine`s Gull"=>"Larus sabini",
|
|
|
459 |
"Sooty Shearwater"=>"Puffinus griseus",
|
|
|
460 |
"Lesser Canada Goose"=>"Branta hutchinsii",
|
|
|
461 |
"Ring-necked Duck"=>"Aythya collaris",
|
|
|
462 |
"Greater Flamingo"=>"Phoenicopterus roseus",
|
|
|
463 |
"Iberian Chiffchaff"=>"Phylloscopus ibericus",
|
|
|
464 |
"Ashy-headed Wagtail"=>"Motacilla cinereocapilla",
|
|
|
465 |
"Stilt Sandpiper"=>"Calidris himantopus",
|
|
|
466 |
"Siberian Stonechat"=>"Saxicola maurus",
|
|
|
467 |
"Greater Yellowlegs"=>"Tringa melanoleuca",
|
|
|
468 |
"Forster`s Tern"=>"Sterna forsteri",
|
|
|
469 |
"Dusky Warbler"=>"Phylloscopus fuscatus",
|
|
|
470 |
"Cirl Bunting"=>"Emberiza cirlus",
|
|
|
471 |
"Olive-backed Pipit"=>"Anthus hodgsoni",
|
|
|
472 |
"Sociable Lapwing"=>"Vanellus gregarius",
|
|
|
473 |
"Spotted Sandpiper"=>"Actitis macularius",
|
|
|
474 |
"Baird`s Sandpiper"=>"Calidris bairdii",
|
|
|
475 |
"Rustic Bunting"=>"Emberiza rustica",
|
|
|
476 |
"Yellow-browed Bunting"=>"Emberiza chrysophrys",
|
|
|
477 |
"Great Shearwater"=>"Puffinus gravis",
|
|
|
478 |
"Bonelli`s Eagle"=>"Aquila fasciata",
|
|
|
479 |
"Calandra Lark"=>"Melanocorypha calandra",
|
|
|
480 |
"Sardinian Warbler"=>"Sylvia melanocephala",
|
|
|
481 |
"Ross's Gull"=>"Larus roseus",
|
|
|
482 |
"Yellow-Breasted Bunting"=>"Emberiza aureola",
|
|
|
483 |
"Pine Bunting"=>"Emberiza leucocephalos",
|
|
|
484 |
"Black Guillemot"=>"Cepphus grylle",
|
|
|
485 |
"Pied-billed Grebe"=>"Podilymbus podiceps",
|
|
|
486 |
"Soft-plumaged Petrel"=>"Pterodroma mollis",
|
|
|
487 |
"Bulwer's Petrel"=>"Bulweria bulwerii",
|
|
|
488 |
"White-Faced Storm-Petrel"=>"Pelagodroma marina",
|
|
|
489 |
"Pallas’s Fish Eagle"=>"Haliaeetus leucoryphus",
|
|
|
490 |
"Sandhill Crane"=>"Grus canadensis",
|
|
|
491 |
"Macqueen’s Bustard"=>"Chlamydotis macqueenii",
|
|
|
492 |
"White-tailed Lapwing"=>"Vanellus leucurus",
|
|
|
493 |
"Great Knot"=>"Calidris tenuirostris",
|
|
|
494 |
"Semipalmated Sandpiper"=>"Calidris pusilla",
|
|
|
495 |
"Red-necked Stint"=>"Calidris ruficollis",
|
|
|
496 |
"Slender-billed Curlew"=>"Numenius tenuirostris",
|
|
|
497 |
"Bridled Tern"=>"Onychoprion anaethetus",
|
|
|
498 |
"Pallas’s Sandgrouse"=>"Syrrhaptes paradoxus",
|
|
|
499 |
"European Scops Owl"=>"Otus scops",
|
|
|
500 |
"Northern Hawk Owl"=>"Surnia ulula",
|
|
|
501 |
"White-Throated Needletail"=>"Hirundapus caudacutus",
|
|
|
502 |
"Belted Kingfisher"=>"Ceryle alcyon",
|
|
|
503 |
"Blue-cheeked Bee-eater"=>"Merops persicus",
|
|
|
504 |
"Black-headed Wagtail"=>"Motacilla feldegg",
|
|
|
505 |
"Northern Mockingbird"=>"Mimus polyglottos",
|
|
|
506 |
"Alpine Accentor"=>"Prunella collaris",
|
|
|
507 |
"Red-flanked Bluetail"=>"Tarsiger cyanurus",
|
|
|
508 |
"Isabelline Wheatear"=>"Oenanthe isabellina",
|
|
|
509 |
"Pied Wheatear"=>"Oenanthe pleschanka",
|
|
|
510 |
"Eastern Black-eared Wheatear"=>"Oenanthe melanoleuca",
|
|
|
511 |
"Desert Wheatear"=>"Oenanthe deserti",
|
|
|
512 |
"White`s Thrush"=>"Zoothera aurea",
|
|
|
513 |
"Siberian Thrush"=>"Zoothera sibirica",
|
|
|
514 |
"Eyebrowed Thrush"=>"Turdus obscurus",
|
|
|
515 |
"Dusky Thrush"=>"Turdus eunomus",
|
|
|
516 |
"Black-throated Thrush"=>"Turdus atrogularis",
|
|
|
517 |
"Pallas`s Grasshopper Warbler"=>"Locustella certhiola",
|
|
|
518 |
"Spectacled Warbler"=>"Sylvia conspicillata",
|
|
|
519 |
"Two-barred Warbler"=>"Phylloscopus plumbeitarsus",
|
|
|
520 |
"Eastern Bonelli’s Warbler"=>"Phylloscopus orientalis",
|
|
|
521 |
"Collared Flycatcher"=>"Ficedula albicollis",
|
|
|
522 |
"Wallcreeper"=>"Tichodroma muraria",
|
|
|
523 |
"Turkestan Shrike"=>"Lanius phoenicuroides",
|
|
|
524 |
"Steppe Grey Shrike"=>"Lanius pallidirostris",
|
|
|
525 |
"Spanish Sparrow"=>"Passer hispaniolensis",
|
|
|
526 |
"Red-eyed Vireo"=>"Vireo olivaceus",
|
|
|
527 |
"Myrtle Warbler"=>"Dendroica coronata",
|
|
|
528 |
"White-crowned Sparrow"=>"Zonotrichia leucophrys",
|
|
|
529 |
"White-throated Sparrow"=>"Zonotrichia albicollis",
|
|
|
530 |
"Cretzschmar`s Bunting"=>"Emberiza caesia",
|
|
|
531 |
"Chestnut Bunting"=>"Emberiza rutila",
|
|
|
532 |
"Red-headed Bunting"=>"Emberiza bruniceps",
|
|
|
533 |
"Black-headed Bunting"=>"Emberiza melanocephala",
|
|
|
534 |
"Indigo Bunting"=>"Passerina cyanea",
|
|
|
535 |
"Balearic Woodchat Shrike"=>"Lanius senator badius",
|
|
|
536 |
"Demoiselle Crane"=>"Grus virgo",
|
|
|
537 |
"Chough"=>"Pyrrhocorax pyrrhocorax",
|
|
|
538 |
"Red-Billed Chough"=>"Pyrrhocorax graculus",
|
|
|
539 |
"Elegant Tern"=>"Sterna elegans",
|
|
|
540 |
"Chukar"=>"Alectoris chukar",
|
|
|
541 |
"Yellow-Billed Cuckoo"=>"Coccyzus americanus",
|
|
|
542 |
"American Sandwich Tern"=>"Sterna sandvicensis acuflavida",
|
|
|
543 |
"Olive-Tree Warbler"=>"Hippolais olivetorum",
|
|
|
544 |
"Eastern Olivaceous Warbler"=>"Acrocephalus pallidus",
|
|
|
545 |
"Indian Cormorant"=>"Phalacrocorax fuscicollis",
|
|
|
546 |
"Spur-Winged Lapwing"=>"Vanellus spinosus",
|
|
|
547 |
"Yelkouan Shearwater"=>"Puffinus yelkouan",
|
|
|
548 |
"Trumpeter Finch"=>"Bucanetes githagineus",
|
|
|
549 |
"Red Grouse"=>"Lagopus scoticus",
|
|
|
550 |
"Rock Ptarmigan"=>"Lagopus mutus",
|
|
|
551 |
"Long-Tailed Cormorant"=>"Phalacrocorax africanus",
|
|
|
552 |
"Double-crested Cormorant"=>"Phalacrocorax auritus",
|
|
|
553 |
"Magnificent Frigatebird"=>"Fregata magnificens",
|
|
|
554 |
"Naumann's Thrush"=>"Turdus naumanni",
|
|
|
555 |
"Oriental Pratincole"=>"Glareola maldivarum",
|
|
|
556 |
"Bufflehead"=>"Bucephala albeola",
|
|
|
557 |
"Snowfinch"=>"Montifrigilla nivalis",
|
|
|
558 |
"Ural owl"=>"Strix uralensis",
|
|
|
559 |
"Spanish Wagtail"=>"Motacilla iberiae",
|
|
|
560 |
"Song Sparrow"=>"Melospiza melodia",
|
|
|
561 |
"Rock Bunting"=>"Emberiza cia",
|
|
|
562 |
"Siberian Rubythroat"=>"Luscinia calliope",
|
|
|
563 |
"Pallid Swift"=>"Apus pallidus",
|
|
|
564 |
"Eurasian Pygmy Owl"=>"Glaucidium passerinum",
|
|
|
565 |
"Madeira Little Shearwater"=>"Puffinus baroli",
|
|
|
566 |
"House Finch"=>"Carpodacus mexicanus",
|
|
|
567 |
"Green Heron"=>"Butorides virescens",
|
|
|
568 |
"Solitary Sandpiper"=>"Tringa solitaria",
|
|
|
569 |
"Heuglin's Gull"=>"Larus heuglini"
|
|
|
570 |
);
|
|
|
571 |
|
|
|
572 |
function array_to_json( $array ){
|
|
|
573 |
|
|
|
574 |
if( !is_array( $array ) ){
|
|
|
575 |
return false;
|
|
|
576 |
}
|
|
|
577 |
|
|
|
578 |
$associative = count( array_diff( array_keys($array), array_keys( array_keys( $array )) ));
|
|
|
579 |
if( $associative ){
|
|
|
580 |
|
|
|
581 |
$construct = array();
|
|
|
582 |
foreach( $array as $key => $value ){
|
|
|
583 |
|
|
|
584 |
// We first copy each key/value pair into a staging array,
|
|
|
585 |
// formatting each key and value properly as we go.
|
|
|
586 |
|
|
|
587 |
// Format the key:
|
|
|
588 |
if( is_numeric($key) ){
|
|
|
589 |
$key = "key_$key";
|
|
|
590 |
}
|
|
|
591 |
$key = "\"".addslashes($key)."\"";
|
|
|
592 |
|
|
|
593 |
// Format the value:
|
|
|
594 |
if( is_array( $value )){
|
|
|
595 |
$value = array_to_json( $value );
|
|
|
596 |
} else if( !is_numeric( $value ) || is_string( $value ) ){
|
|
|
597 |
$value = "\"".addslashes($value)."\"";
|
|
|
598 |
}
|
|
|
599 |
|
|
|
600 |
// Add to staging array:
|
|
|
601 |
$construct[] = "$key: $value";
|
|
|
602 |
}
|
|
|
603 |
|
|
|
604 |
// Then we collapse the staging array into the JSON form:
|
|
|
605 |
$result = "{ " . implode( ", ", $construct ) . " }";
|
|
|
606 |
|
|
|
607 |
} else { // If the array is a vector (not associative):
|
|
|
608 |
|
|
|
609 |
$construct = array();
|
|
|
610 |
foreach( $array as $value ){
|
|
|
611 |
|
|
|
612 |
// Format the value:
|
|
|
613 |
if( is_array( $value )){
|
|
|
614 |
$value = array_to_json( $value );
|
|
|
615 |
} else if( !is_numeric( $value ) || is_string( $value ) ){
|
|
|
616 |
$value = "'".addslashes($value)."'";
|
|
|
617 |
}
|
|
|
618 |
|
|
|
619 |
// Add to staging array:
|
|
|
620 |
$construct[] = $value;
|
|
|
621 |
}
|
|
|
622 |
|
|
|
623 |
// Then we collapse the staging array into the JSON form:
|
|
|
624 |
$result = "[ " . implode( ", ", $construct ) . " ]";
|
|
|
625 |
}
|
|
|
626 |
|
|
|
627 |
return $result;
|
|
|
628 |
}
|
|
|
629 |
|
|
|
630 |
$result = array();
|
|
|
631 |
foreach ($items as $key=>$value) {
|
|
|
632 |
if (strpos(strtolower($key), $q) !== false) {
|
|
|
633 |
array_push($result, array("id"=>$value, "label"=>$key, "value" => strip_tags($key)));
|
|
|
634 |
}
|
|
|
635 |
if (count($result) > 11)
|
|
|
636 |
break;
|
|
|
637 |
}
|
|
|
638 |
echo array_to_json($result);
|
|
|
639 |
|
|
|
640 |
?>
|