Array associativo

L'array associativo è un array i cui elementi sono accessibili mediante nomi, quindi stringhe anziché indici puramente numerici. Questo non comporta però l'obbligo di utilizzare solo un tipo di indice: alcuni elementi dell'array possono avere un indice numerico, altri un indice di tipo stringa.

Segue un esempio in linguaggio PHP:

$auto["marca"] = 'FIAT';
$auto["modello"] = '500L';
$auto["colore"] = 'Blu';
$auto["anno"] = 1956;
$auto["revisionata"] = true;

L'indice, racchiuso tra le parentesi quadre è l'elemento attraverso il quale è possibile accedere al valore corrispondente dell'array. In PHP poi, come con altri linguaggi interpretati, gli array possono avere valori di tipo diverso. Nell'esempio abbiamo valori di tipo stringa, intero, booleano.

Voci correlate

Collegamenti esterni

  Portale Informatica: accedi alle voci di Wikipedia che trattano di informatica

Read other articles:

Часть серии статей о Холокосте Идеология и политика Расовая гигиена · Расовый антисемитизм · Нацистская расовая политика · Нюрнбергские расовые законы Шоа Лагеря смерти Белжец · Дахау · Майданек · Малый Тростенец · Маутхаузен ·&...

 

Italian footballer (born 1991) Nicola Sansone Sansone with Italy in 2015Personal informationFull name Nicola Domenico SansoneDate of birth (1991-09-10) 10 September 1991 (age 32)Place of birth Munich, Germany[1]Height 1.73 m (5 ft 8 in)[2]Position(s) ForwardTeam informationCurrent team LecceNumber 11Youth career0000–2002 SV Neuperlach2002–2010 Bayern MunichSenior career*Years Team Apps (Gls)2010–2011 Bayern Munich II 32 (2)2011–2014 Parma 43 (8)2011...

 

Subfield of mathematics For Quine's theory sometimes called Mathematical Logic, see New Foundations. For other uses, see Logic (disambiguation). Part of a series onMathematics History Outline Index Areas Number theory Geometry Algebra Calculus and Analysis Discrete mathematics Logic and Set theory Probability Statistics and Decision theory Relationship with sciences Physics Chemistry Geosciences Computation Biology Linguistics Economics Philosophy Education Mathematics Portalvte Mathematical ...

Perdana Menteri BelandaBelanda: Minister-president van Nederlandcode: nl is deprecated Lambang negara BelandaPetahanaMark Ruttesejak 14 Oktober 2011Kementerian Urusan UmumGelarPerdana MenteriYang TerhormatJenisKepala pemerintahanAnggotaDewan MenteriDewan EropaKediamanCatshuis, Den HaagKantorTorentje, Den HaagDitunjuk olehMonarki BelandaMasa jabatan4 tahun, dapat diperbaruiPejabat pertamaGerrit SchimmelpenninckWakilWakil Perdana MenteriGaji€176.000 per tahun[1]Situs webwww.gover...

 

Radio station in Pittsburg, CaliforniaKATDSimulcasts KIQI, San FranciscoPittsburg, CaliforniaBroadcast areaSacramento ValleyFrequency990 kHzProgrammingLanguage(s)SpanishFormatTalk radio (brokered programming)AffiliationsOakland Athletics Spanish Radio NetworkOwnershipOwnerMulticultural Broadcasting(Way Broadcasting Licensee, LLC)Sister stationsKIQIHistoryFirst air date1949Former call signsKIXA (1990-1993)Technical informationFacility ID52256ClassBPower10,000 watts day5,000 watts nightTransmit...

 

San Francesco SolanoSan Francesco Solano in un dipinto attribuito a Pedro Diaz Sacerdote e missionario  NascitaMontilla, 10 marzo 1549 MorteLima, 14 luglio 1610 (61 anni) Venerato daChiesa cattolica Beatificazione30 giugno 1675 da papa Clemente X Canonizzazione27 dicembre 1726 da papa Benedetto XIII Ricorrenza14 luglio Patrono diArgentina, Cile, Bolivia, Paraguay, Perù, Montilla Manuale Francesco Solano, in spagnolo Francisco (Montilla, 10 marzo 1549 – Lima, 14 luglio 1610),...

National Park in Chūbū, Japan Chūbu-Sangaku National Park中部山岳国立公園 Chūbu-Sangaku Kokuritsu KōenIUCN category II (national park)Kamikochi and Mount HotakaChūbu-Sangaku National ParkChūbu-Sangaku National ParkShow map of Nagano PrefectureChūbu-Sangaku National ParkChūbu-Sangaku National Park (Japan)Show map of JapanLocationHonshū, JapanCoordinates36°45′30″N 137°47′30″E / 36.75833°N 137.79167°E / 36.75833; 137.79167Area1,743.23 square ...

 

Papa Giovanni Paolo IFotografia ufficiale di Giovanni Paolo I (1978)263º papa della Chiesa cattolica Elezione26 agosto 1978 Insediamento3 settembre 1978 Fine pontificato28 settembre 1978[1](0 anni e 33 giorni) MottoHumilitas Predecessorepapa Paolo VI Successorepapa Giovanni Paolo II  NomeAlbino Luciani NascitaCanale d'Agordo, 17 ottobre 1912 Ordinazione diaconale2 febbraio 1935 dal vescovo Giosuè Cattarossi Ordinazione sacerdotale7 luglio 1935 dal vescovo Giosuè Catt...

 

Shuma-GorathShuma-Gorath seperti yang terlihat dari permainan video Marvel Super HeroesInformasi publikasiPenerbitMarvel ComicsPenampilan pertamaMarvel Premiere #5 (November 1972)Dibuat olehSteve Englehart Frank Brunner Robert E. HowardInformasi dalam ceritaSpesiesIblisNama alias terkenalLord of ChaosKemampuanProyeksi energiManipulasi realitasMengubah diriPengangkatanTeleportasiKekuatan mistis yang luasKeabadian Shuma-Gorath adalah karakter fiksi yang muncul di buku komik Amerika yang diterbi...

المكتبة المحمودية المكتبة المحمودية من الداخل قبل هدمها وضمها إلى مكتبة الملك عبد العزيز بالمدينة المنورة. إحداثيات 24°28'56N 39°33'34E معلومات عامة الدولة المدينة المنورة،  السعودية سنة التأسيس 1821هـ النوع مكتبة تاريخية تعديل مصدري - تعديل   المكتبة المحمودية هي مكتبة خاصة...

 

Stasiun Gang Sentiong C03 Stasiun Gang Sentiong, 2023Nama lainStasiun SentiongLokasiJalan Kramat Dalam 1Kramat, Senen, Jakarta Pusat, 10450IndonesiaKoordinat6°11′9.672″S 106°51′2.369″E / 6.18602000°S 106.85065806°E / -6.18602000; 106.85065806Koordinat: 6°11′9.672″S 106°51′2.369″E / 6.18602000°S 106.85065806°E / -6.18602000; 106.85065806Ketinggian+7 mOperator KAI Commuter Letakkm 7+713 lintas Jakarta-Jatinegara-Cikampek ...

 

Johann Karl Friedrich Zöllner Johann Karl Friedrich Zöllner (8 November 1834 – 25 April 1882) adalah seorang astrofisikawan Jerman yang mengkaji ilusi optik. Ia juga merupakan seorang investigator psikikal. Publikasi Transcendental Physics (English edition, translated by Charles Massey, 1880) Referensi Bacaan tambahan Hereward Carrington. (1907). The Physical Phenomena of Spiritualism. Herbert B. Turner & Co. Joseph Jastrow. (1901). Fact and Fable in Psychology. Macmilla...

Archaeological site in South Carolina, United States United States historic placeBlair MoundU.S. National Register of Historic Places Nearest cityWinnsboro, South CarolinaArea9.9 acres (4.0 ha)NRHP reference No.74001853[1]Added to NRHPAugust 23, 1974 Blair Mound is a historic archaeological site located near Winnsboro, Fairfield County, South Carolina. Blair Mound is an earthen mound structure in the form of a low, oval hummock. It measures approximately 75 by 50 yards ...

 

Strategy designed to restrict specific groups of people from voting Voters at voting booths in the United States in 1945 Part of a series onDiscrimination Forms Institutional Structural Attributes Age Caste Class Dialect Disability Genetic Hair texture Height Language Looks Mental disorder Race / Ethnicity Skin color Scientific racism Rank Sex Sexual orientation Species Size Viewpoint Social Arophobia Acephobia Adultism Anti-albinism Anti-autism Anti-homelessness Anti-drug addicts An...

 

此條目可参照英語維基百科相應條目来扩充。 (2021年5月6日)若您熟悉来源语言和主题,请协助参考外语维基百科扩充条目。请勿直接提交机械翻译,也不要翻译不可靠、低品质内容。依版权协议,译文需在编辑摘要注明来源,或于讨论页顶部标记{{Translated page}}标签。 约翰斯顿环礁Kalama Atoll 美國本土外小島嶼 Johnston Atoll 旗幟颂歌:《星條旗》The Star-Spangled Banner約翰斯頓環礁�...

Operating system for the Nintendo Switch video game consoleThis article's lead section may be too short to adequately summarize the key points. Please consider expanding the lead to provide an accessible overview of all important aspects of the article. (August 2023)Some of this article's listed sources may not be reliable. Please help improve this article by looking for better, more reliable sources. Unreliable citations may be challenged and removed. (March 2024) (Learn how and when to remo...

 

Chronologies Données clés 1283 1284 1285  1286  1287 1288 1289Décennies :1250 1260 1270  1280  1290 1300 1310Siècles :XIe XIIe  XIIIe  XIVe XVeMillénaires :-Ier Ier  IIe  IIIe Chronologies thématiques Religion (,) et * Croisades   Science () et Santé et médecine   Terrorisme Calendriers Romain Chinois Grégorien Julien Hébraïque Hindou Hégirien Persan Républicain modifier Années de la santé et de la médecine ...

 

2016年美國總統選舉 ← 2012 2016年11月8日 2020 → 538個選舉人團席位獲勝需270票民意調查投票率55.7%[1][2] ▲ 0.8 %   获提名人 唐納·川普 希拉莉·克林頓 政党 共和黨 民主党 家鄉州 紐約州 紐約州 竞选搭档 迈克·彭斯 蒂姆·凱恩 选举人票 304[3][4][註 1] 227[5] 胜出州/省 30 + 緬-2 20 + DC 民選得票 62,984,828[6] 65,853,514[6]...

  关于与「內閣總理大臣」標題相近或相同的条目页,請見「內閣總理大臣 (消歧義)」。 日本國內閣總理大臣內閣總理大臣紋章現任岸田文雄自2021年10月4日在任尊称總理、總理大臣、首相、阁下官邸總理大臣官邸提名者國會全體議員選出任命者天皇任期四年,無連任限制[註 1]設立法源日本國憲法先前职位太政大臣(太政官)首任伊藤博文设立1885年12月22日,...

 

Частина серії проФілософіяLeft to right: Plato, Kant, Nietzsche, Buddha, Confucius, AverroesПлатонКантНіцшеБуддаКонфуційАверроес Філософи Епістемологи Естетики Етики Логіки Метафізики Соціально-політичні філософи Традиції Аналітична Арістотелівська Африканська Близькосхідна іранська Буддій�...