We konden deze vermelding niet vinden. Er worden benaderende resultaten weergegeven. Controleer je spelling of stel voor deze term aan het woordenboek toe te voegen.
Ca oricare alte variabile, array-urile trebuie să fie inițializate înainte de a putea accesa și folosi un element din array.
Like any other variables, arrays must be initialized before we can access and use an element of that array.
De asemenea, putem vedea că acest tip de array poate fi doar citit - când am încercat să schimbăm valoarea unui anumit element din array, am primit o eroare.
We can also see that this kind of array is read only - when we tried to change the value of a certain array element, we got an error as well.
Atunci cand al doilea element din array a fost eliminat, numarul de elemente s-a redus cu unul, dar index-ul 1 a ramas nealocat, iar este egal cu marimea, asa ca nu se va mai ajunge la el.
When the second element of the array was removed, the number of elements was reduced by one, but the index with value 1 was no longer set and the last index is equal to the size of the array, so it will never be reached.
Este de remarcat ca de fapt primul element din array, adica $argv este chiar numele scriptului!
Notice the first element of the array ($argv) is the name of the script! The modified example is as follows
Din nou, ai face bine să fii sigur că fiecare element din array este de tipul StudioAlbums, altfel codul tău va crăpa.
Again, you had better be correct that all items in the array are StudioAlbums, otherwise your code will crash.
Deci, accesarea elementelor unui array se face prin indicii elementelor sale, la fel cum și găsirea unei adrese se face prin numărul apartamentului în interiorul unei clădiri... urile trebuie să fie inițializate înainte de a putea accesa și folosi un element din array.
So, accessing the elements of arrays is done through their elements indices, just like finding an address is done through the apartment number inside a building... Read more
Potentieel gevoelige of ongepaste informatie
Er worden alleen voorbeelden gegeven om u te helpen het woord of de woordcombinatie waarop u hebt gezocht, te vertalen. Deze worden niet door ons geselecteerd of gevalideerd en kunnen ongepaste taal bevatten. Wij vragen u melding te maken van voorbeelden die dienen te worden aangepast of verwijderd. Vertalingen met grof of informeel taalgebruik worden meestal rood of oranje gemarkeerd.