Categorized | MySQL

PHP Basics: Arrays

Posted on 15 July 2010 by Abidoon


Arrays allow you to store a number of data values inside one variables, which makes it easier to read, quicker to assign and easier to access each element!

Tags | ,

23 Responses to “PHP Basics: Arrays”

  1. ncbookz says:

    genius! can you do a video explaining the terminology on the php help pages, in other words they have explanations and examples but they always have something like function[(mm),x],y]z] now my degree is in math but their way of explaining makes no sense what if you do not need z as sometimes is the case, their explanations need explaining

  2. elcrimer says:

    In this tut Alex talks about arrays “which used to hold diff (numerical values/strings) as elements into one variable for easy access/assignment/read” and
    1- How to declare them.
    2- How to assign data (numerical/strings) into them using two diff methods.
    3- How to display each element using the square brackets and echo command.
    4- Using associative arrays as an easy way to refer to each element.

  3. elcrimer says:

    @smileysimm I think Alex used the word “null” not “naught” , “null” comes with diff meanings such as “empty , undefined or meaning less” & some ppl use it to refer to zero …

  4. Stickeyjam says:

    Nice tutorial mate, had some trouble understanding Arrays but this has cleared it up nicely.

  5. sonu5541 says:

    this is god dude

  6. culienpa says:

    aLex i love U :)

  7. CARDRAYoCOM says:

    Redo – Shift-Ctrl-Z
    or Ctrl-Y in some other editors

  8. 8ballbreakandrun says:

    Excellent, as are your others. I like the method of starting with 0, as it seems to be the easiest to manage.

  9. Darkhan111111 says:

    Amazing

  10. ShevaFC says:

    idiot

  11. baturbros says:

    damn 13 years old, living in egypt, knows english and learning php… i going to kill myself. i was pee on my panths when i was 13 still. and i am still poor in english.

  12. garrett2023 says:

    he’s British

  13. duranali says:

    thanks, enjoying ur tutorials…

  14. Cod3ZBoy says:

    @madhukar1982
    sry for this but ur an idiot phpacademy is awesome academy dude u sux i am 13 years old and from egypt and i can understand him….u just sux

  15. phpacademy says:

    Excuse me?

  16. madhukar1982 says:

    its not good
    Please increase the work

  17. CrazyS0 says:

    i actually understand it

  18. Rogueixpresents says:

    german :D

  19. Svipic says:

    I was unable to understand what the Aray was till i saw this tutorial. Mennn you are awesome. thank you very muich

  20. chjustin69 says:

    Gesh your really good… like the questions I ask in my head after you teach something (like when you first called an array I was wondering how you could assign a value to the array to better remember it) than the next thing you do is teach that… your really great!

  21. divac7777 says:

    these are good tutorials! Keep making them!

  22. phpacademy says:

    Yes :D Naught means zero. I should really start saying zero now!

  23. smileysimm says:

    What’s the word you use for “Zero”?? It sounds like “naught” – is that right?


Leave a Reply