10 | How to Create Arrays in PHP | Indexed & Associative Arrays | 2023 | PHP Course for Beginners

Поділитися
Вставка
  • Опубліковано 29 вер 2024
  • In this PHP tutorial I will show you how to create arrays in PHP. 🙂 PHP arrays are important to know about, and I will cover both indexed arrays, as well as associative arrays. We can use arrays to store multiple data in the same variable, which makes development a lot easier. At the end, I will also cover something called a multidimensional array.
    Documentation: www.php.net/ma...
    ➤ GET ACCESS TO MY LESSON MATERIAL HERE!
    First of all, thank you for all the support you have given me!
    I am really glad to have such an awesome community on my channel. It motivates me to continue creating and uploading content! So thank you!
    I am now using Patreon and UA-cam Memberships to share improved and updated lesson material, and for a small fee you can access all the material either from my memberships or Patreon, depending on your preference. I have worked hard, and done my best to help you understand what I teach.
    I hope you will find it helpful :)
    Memberships: / @dani_krossing
    Patreon: / mmtuts

КОМЕНТАРІ • 60

  • @OfficialUnderratedMusic
    @OfficialUnderratedMusic 6 місяців тому +3

    21:20 To help pronounciation: Its' "Vedge-y-teh-bulls" not "Vehgee-tuh-bowls" or "Vex-tuh-bowls" 😅😅

  • @Gloria_Baffoe
    @Gloria_Baffoe 8 місяців тому

    Thanks very much

  • @Devi_ka
    @Devi_ka Рік тому +13

    I'm currently learning PHP and I'm deeply grateful for your videos. Thank you :)

  • @oyobiryani
    @oyobiryani Рік тому +4

    I thought you are Elon Musk 😂

    • @ericaimhigh
      @ericaimhigh 8 місяців тому

      He looks more like Jimmy (Mr. Beast)

  • @ponny256
    @ponny256 8 місяців тому +2

    7:58 - in fact it is not the banana that will be removed, but the apple

  • @germantoenglish898
    @germantoenglish898 5 місяців тому +2

    Is an associative array in PHP similar to an object with key/value pairs in JS?

    • @Dani_Krossing
      @Dani_Krossing  5 місяців тому +1

      Yes 🙂 I always found it odd that JS doesn't have associative arrays in the same way as PHP, and require full on objects to do this.

  • @stormybear4986
    @stormybear4986 Місяць тому +2

    Dani, your php videos are the best on youtube. But you, sir, are a banana! It was so cute how you experimented with the very American pronunciation of the word, personally, I like your pronunciation better. Jeg elsker dig min bror.

  • @ZezoTVNL
    @ZezoTVNL Рік тому +2

    Thank you man I'm learning with Codecademy and everytime i don't really understand something I'm watching your video's

  • @raveshtech
    @raveshtech 9 місяців тому +3

    Thank you Elon, I mean Dani😁😁

  • @oyobiryani
    @oyobiryani Рік тому +4

    You are great teacher

  • @DLiberator78
    @DLiberator78 10 місяців тому +2

    I've been a long time subscriber of your channel and I have recently started studying PHP once again. I love referring to your excellent tutorials, you explain things really clearly and thoroughly. This channel is a fantastic resource.

  • @anfalratul6540
    @anfalratul6540 Рік тому +1

    thanks. your video make me happy cause I love your teaching videos. Please make a laravel video..
    Take love from Bangladesh. 🥰🥰

  • @mhjoy7550
    @mhjoy7550 Рік тому +1

    u look like mr.beast

  • @MyNimrods
    @MyNimrods Рік тому +1

    You say "banana" absolutely correctly. Americans say it slightly differently but they American after all.

  • @heyuzhao1
    @heyuzhao1 6 місяців тому +2

    非常好视频,爱来自中国❤

  • @kylehawks2966
    @kylehawks2966 Рік тому +1

    Finally got it only took me 2 weeks alot of mountain dew cost me a girlfriend but I'm here!!!

  • @AgenceWebSigma
    @AgenceWebSigma 7 місяців тому +2

    Real Guru as usual dani :)

  • @Stoney_Eagle
    @Stoney_Eagle Рік тому +1

    You failed spectacularly on not blinding me 😎
    I expect my clothes to be steam cleaned and ironed sir 😂

  • @Wyiyi1111
    @Wyiyi1111 2 місяці тому +1

    Best tutorial for PHP learning, big thanks!

  • @derikaem8021
    @derikaem8021 2 місяці тому

    ua-cam.com/video/D7mqV-p1kEc/v-deo.html the 1st pronounciation is probably closer to correct

  • @ninxgaming1461
    @ninxgaming1461 6 місяців тому +1

    I really love how you teach programming...

  • @markdevonbrillantes8344
    @markdevonbrillantes8344 9 місяців тому

    You have wrong information about array_splice()

  • @toma1610
    @toma1610 Місяць тому

    3:00 There is no example, how is the output like that. No outputs in the whole video.

  • @nakdickson
    @nakdickson Рік тому +1

    Bro do you have a video on ES6 courses?

  • @DebashisDGiri
    @DebashisDGiri Рік тому +1

    Sir by when this course will be completed?

    • @Dani_Krossing
      @Dani_Krossing  Рік тому +1

      I'm not sure. There are many subjects to cover in this course, and I only prepare portions ahead of time. 🙂

  • @RuanHigor
    @RuanHigor Рік тому +2

    Nice work

  • @TundeEszlari
    @TundeEszlari Рік тому +2

    Great video.

  • @KeithBluhm
    @KeithBluhm Рік тому +1

    We've been able to add trailing commas to arrays well before PHP 8; perhaps as far back as 5? You may be thinking of trailing commas in parameter lists.

    • @Dani_Krossing
      @Dani_Krossing  Рік тому +1

      Yes trailing commas in arrays were added in PHP 7.2, and in parameters in PHP 8.0 🙂

  • @EL_WAFI_CHERKAOUI
    @EL_WAFI_CHERKAOUI 5 місяців тому

    16:13 i think it takes out banana and replace it with cherry

  • @miikoa
    @miikoa Рік тому +1

    Thank you. This was perfect. I feel confident now:)

  • @abdulzd9802
    @abdulzd9802 Рік тому +1

    Nice video

  • @navymiguelito
    @navymiguelito 2 місяці тому

    It's "Banarrrrnah"....lol.

  • @ewoudbossuyt5685
    @ewoudbossuyt5685 Місяць тому

    fish is not meat Dani! ;)

  • @arshad1781
    @arshad1781 Рік тому +1

    Thanks ❤

  • @yousifky
    @yousifky Рік тому +1

    ❤❤❤

  • @akashgola2153
    @akashgola2153 6 місяців тому

    Arrays Check ✅.

  • @satishg6965
    @satishg6965 Рік тому +1

    Thanks Bro

  • @lexiriam
    @lexiriam 2 місяці тому

    Great video. Also, your initial pronunciation of banana is correct. No need to change it.

  • @M-K_R
    @M-K_R Рік тому

    Sir I want to confirm that
    "Fruits" => "Apple"
    you said that it's a type of associate array

  • @AEssex1990
    @AEssex1990 4 місяці тому

    it was a nice little treat getting to the end of this and hearing him pronounce vegetables as vextables. xD

  • @johnsimon9625
    @johnsimon9625 11 місяців тому

    How to display data from another table for a specific loggedin user in php

  • @MohammedAlziko
    @MohammedAlziko 9 місяців тому

    😘😘😘😘

  • @sethrathnayake8028
    @sethrathnayake8028 Рік тому

    You look like Elon Musk😂and talk like him too.

  • @solomonfesshaye6366
    @solomonfesshaye6366 3 місяці тому

    Thank you brother.

  • @Lyrik-Klinge
    @Lyrik-Klinge Рік тому

    Fantastic, THANKS!

  • @AxxionMarketPlace-iu6ri
    @AxxionMarketPlace-iu6ri Рік тому

    Thank you

  • @amiramohammed1568
    @amiramohammed1568 10 місяців тому

    love this

  • @تعزيمبعسس-ي1ض
    @تعزيمبعسس-ي1ض Рік тому

    thanks

  • @feloplus
    @feloplus Рік тому

    I need you to build an app for my small business. Any email or contact to reach you? You're awesome.

    • @Dani_Krossing
      @Dani_Krossing  Рік тому +1

      I think you should reach out to someone who provides those services. 🙂 I'm a UA-cam teacher, not an active developer, but thanks for thinking of me. 😊

  • @cryptoknight7256
    @cryptoknight7256 Рік тому

    Is there a better solution in php to deal with async functions rather than looping until you have the answer? Thanks!

  • @webz-gmail4714
    @webz-gmail4714 Рік тому +1

    Awesome tutorials. Are you considering doing anything in Laravel or what's your recommendation in using frameworks vs building your own frame work

    • @Dani_Krossing
      @Dani_Krossing  Рік тому +7

      A Laravel course might be a future thing, but for the moment this is purely focused around the core PHP language. 🙂
      Personally I would recommend sticking to a framework that already exists, and is widely used. Building your own framework is probably a fun exercise in getting to know PHP a lot better, but you are also responsible of altering the framework any time new updates rolls out to the core language. Existing frameworks have larger teams constantly working to improve those frameworks, and will most likely have a framework that is better than nearly all "self-build" frameworks out there. 🙂
      And in general, one of the reasons we use frameworks, is so developers have the same guidelines for creating code. So if you plan on getting a job in a business, then they most likely require that you know how to use a framework that they are familiar with as well, such as Laravel.