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
21:20 To help pronounciation: Its' "Vedge-y-teh-bulls" not "Vehgee-tuh-bowls" or "Vex-tuh-bowls" 😅😅
Thanks very much
I'm currently learning PHP and I'm deeply grateful for your videos. Thank you :)
I thought you are Elon Musk 😂
He looks more like Jimmy (Mr. Beast)
7:58 - in fact it is not the banana that will be removed, but the apple
Is an associative array in PHP similar to an object with key/value pairs in JS?
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.
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.
Thank you man I'm learning with Codecademy and everytime i don't really understand something I'm watching your video's
Thank you Elon, I mean Dani😁😁
I was thinking the same
You are great teacher
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.
thanks. your video make me happy cause I love your teaching videos. Please make a laravel video..
Take love from Bangladesh. 🥰🥰
u look like mr.beast
You say "banana" absolutely correctly. Americans say it slightly differently but they American after all.
非常好视频,爱来自中国❤
Finally got it only took me 2 weeks alot of mountain dew cost me a girlfriend but I'm here!!!
Real Guru as usual dani :)
You failed spectacularly on not blinding me 😎
I expect my clothes to be steam cleaned and ironed sir 😂
😅
Best tutorial for PHP learning, big thanks!
ua-cam.com/video/D7mqV-p1kEc/v-deo.html the 1st pronounciation is probably closer to correct
I really love how you teach programming...
You have wrong information about array_splice()
3:00 There is no example, how is the output like that. No outputs in the whole video.
Bro do you have a video on ES6 courses?
Sir by when this course will be completed?
I'm not sure. There are many subjects to cover in this course, and I only prepare portions ahead of time. 🙂
Nice work
Great video.
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.
Yes trailing commas in arrays were added in PHP 7.2, and in parameters in PHP 8.0 🙂
16:13 i think it takes out banana and replace it with cherry
Thank you. This was perfect. I feel confident now:)
Nice video
It's "Banarrrrnah"....lol.
fish is not meat Dani! ;)
Thanks ❤
❤❤❤
Arrays Check ✅.
Thanks Bro
Great video. Also, your initial pronunciation of banana is correct. No need to change it.
Sir I want to confirm that
"Fruits" => "Apple"
you said that it's a type of associate array
it was a nice little treat getting to the end of this and hearing him pronounce vegetables as vextables. xD
How to display data from another table for a specific loggedin user in php
😘😘😘😘
You look like Elon Musk😂and talk like him too.
Thank you brother.
Fantastic, THANKS!
Thank you
love this
thanks
I need you to build an app for my small business. Any email or contact to reach you? You're awesome.
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. 😊
Is there a better solution in php to deal with async functions rather than looping until you have the answer? Thanks!
Awesome tutorials. Are you considering doing anything in Laravel or what's your recommendation in using frameworks vs building your own frame work
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.