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

  Рет қаралды 34,224

Dani Krossing

Dani Krossing

Жыл бұрын

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/manual/en/languag...
➤ 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 KZfaq 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

Пікірлер: 52
@Devi_ka
@Devi_ka Жыл бұрын
I'm currently learning PHP and I'm deeply grateful for your videos. Thank you :)
@DLiberator78
@DLiberator78 6 ай бұрын
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.
@miikoa
@miikoa 11 ай бұрын
Thank you. This was perfect. I feel confident now:)
@AEssex1990
@AEssex1990 Ай бұрын
it was a nice little treat getting to the end of this and hearing him pronounce vegetables as vextables. xD
@Lyrik-Klinge
@Lyrik-Klinge Жыл бұрын
Fantastic, THANKS!
@ZezoTVNL
@ZezoTVNL 10 ай бұрын
Thank you man I'm learning with Codecademy and everytime i don't really understand something I'm watching your video's
@oyobiryani
@oyobiryani 9 ай бұрын
You are great teacher
@ninxgaming1461
@ninxgaming1461 3 ай бұрын
I really love how you teach programming...
@ponny256
@ponny256 5 ай бұрын
7:58 - in fact it is not the banana that will be removed, but the apple
@TundeEszlari
@TundeEszlari Жыл бұрын
Great video.
@solomonfesshaye6366
@solomonfesshaye6366 16 күн бұрын
Thank you brother.
@RuanHigor
@RuanHigor 10 ай бұрын
Nice work
@anfalratul6540
@anfalratul6540 Жыл бұрын
thanks. your video make me happy cause I love your teaching videos. Please make a laravel video.. Take love from Bangladesh. 🥰🥰
@arshad1781
@arshad1781 Жыл бұрын
Thanks ❤
@amiramohammed1568
@amiramohammed1568 7 ай бұрын
love this
@AgenceWebSigma
@AgenceWebSigma 3 ай бұрын
Real Guru as usual dani :)
@heyuzhao1
@heyuzhao1 2 ай бұрын
非常好视频,爱来自中国❤
@satishg6965
@satishg6965 11 ай бұрын
Thanks Bro
@Gloria_Baffoe
@Gloria_Baffoe 5 ай бұрын
Thanks very much
@AxxionMarketPlace-iu6ri
@AxxionMarketPlace-iu6ri 10 ай бұрын
Thank you
@abdulzd9802
@abdulzd9802 Жыл бұрын
Nice video
@KeithBluhm
@KeithBluhm Жыл бұрын
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 Жыл бұрын
Yes trailing commas in arrays were added in PHP 7.2, and in parameters in PHP 8.0 🙂
@kylehawks2966
@kylehawks2966 Жыл бұрын
Finally got it only took me 2 weeks alot of mountain dew cost me a girlfriend but I'm here!!!
@yousifky
@yousifky Жыл бұрын
❤❤❤
@Stoney_Eagle
@Stoney_Eagle Жыл бұрын
You failed spectacularly on not blinding me 😎 I expect my clothes to be steam cleaned and ironed sir 😂
@Dani_Krossing
@Dani_Krossing Жыл бұрын
😅
@user-mv2rk5xr2t
@user-mv2rk5xr2t Жыл бұрын
thanks
@nakdickson
@nakdickson Жыл бұрын
Bro do you have a video on ES6 courses?
@akashgola2153
@akashgola2153 3 ай бұрын
Arrays Check ✅.
@MohammedAlziko
@MohammedAlziko 6 ай бұрын
😘😘😘😘
@johnsimon9625
@johnsimon9625 8 ай бұрын
How to display data from another table for a specific loggedin user in php
@EL_WAFI_CHERKAOUI
@EL_WAFI_CHERKAOUI 2 ай бұрын
16:13 i think it takes out banana and replace it with cherry
@germantoenglish898
@germantoenglish898 2 ай бұрын
Is an associative array in PHP similar to an object with key/value pairs in JS?
@Dani_Krossing
@Dani_Krossing 2 ай бұрын
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.
@raveshtech
@raveshtech 6 ай бұрын
Thank you Elon, I mean Dani😁😁
@webz-gmail4714
@webz-gmail4714 Жыл бұрын
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 Жыл бұрын
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.
@DebashisDGiri
@DebashisDGiri Жыл бұрын
Sir by when this course will be completed?
@Dani_Krossing
@Dani_Krossing Жыл бұрын
I'm not sure. There are many subjects to cover in this course, and I only prepare portions ahead of time. 🙂
@OfficialUnderratedMusic
@OfficialUnderratedMusic 3 ай бұрын
21:20 To help pronounciation: Its' "Vedge-y-teh-bulls" not "Vehgee-tuh-bowls" or "Vex-tuh-bowls" 😅😅
@MyNimrods
@MyNimrods Жыл бұрын
You say "banana" absolutely correctly. Americans say it slightly differently but they American after all.
@M-K_R
@M-K_R 9 ай бұрын
Sir I want to confirm that "Fruits" => "Apple" you said that it's a type of associate array
@oyobiryani
@oyobiryani 9 ай бұрын
I thought you are Elon Musk 😂
@ericaimhigh
@ericaimhigh 5 ай бұрын
He looks more like Jimmy (Mr. Beast)
@mhjoy7550
@mhjoy7550 9 ай бұрын
u look like mr.beast
@markdevonbrillantes8344
@markdevonbrillantes8344 6 ай бұрын
You have wrong information about array_splice()
@sethrathnayake8028
@sethrathnayake8028 9 ай бұрын
You look like Elon Musk😂and talk like him too.
@cryptoknight7256
@cryptoknight7256 Жыл бұрын
Is there a better solution in php to deal with async functions rather than looping until you have the answer? 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 Жыл бұрын
I think you should reach out to someone who provides those services. 🙂 I'm a KZfaq teacher, not an active developer, but thanks for thinking of me. 😊
Just try to use a cool gadget 😍
00:33
123 GO! SHORTS
Рет қаралды 85 МЛН
Osman Kalyoncu Sonu Üzücü Saddest Videos Dream Engine 170 #shorts
00:27
Learn JSON in 10 Minutes
12:00
Web Dev Simplified
Рет қаралды 3,1 МЛН
Learn C++ With Me #9 - Arrays
21:35
Tech With Tim
Рет қаралды 73 М.
Working With PHP Arrays the Right Way
16:10
Envato Tuts+
Рет қаралды 5 М.
Yaml Tutorial | Learn YAML in 18 mins
18:05
TechWorld with Nana
Рет қаралды 614 М.
How To Work With Arrays In PHP - Full PHP 8 Tutorial
15:09
Program With Gio
Рет қаралды 49 М.
Just try to use a cool gadget 😍
00:33
123 GO! SHORTS
Рет қаралды 85 МЛН