PHP Array Data Type - Indexed, Associative & Multi-Dimensional Arrays - Full PHP 8 Tutorial

  Рет қаралды 86,936

Program With Gio

Program With Gio

Күн бұрын

Пікірлер: 200
@colonelvector
@colonelvector Жыл бұрын
I've never seen a tutorial so quick yet thorough and understandable at the same time. You covered everything in such a short amount of time while keeping it clear. Excellent, excellent video. The whole series actually. This would be my go-to suggestion for new or experinced devs
@ProgramWithGio
@ProgramWithGio Жыл бұрын
This means alot, thank you 💙. The video speed was an editing mistake I made early on in the series :). I cut out all the empty spaces that make it sound like I don't breathe.
@magnomani5865
@magnomani5865 Жыл бұрын
This is not a course about how to program in PHP, but how to do it with love and best right way! Thanks forever!
@ProgramWithGio
@ProgramWithGio Жыл бұрын
Thank you 💙
@KaraSuraDraw1
@KaraSuraDraw1 Жыл бұрын
I now understand why my tutors in school hammered us on the fundamentals of programming. My fundamentals are good right now and I don't find it hard to switch to another programming language anymore. Of course, I don't know the ins and outs of that programming language, but I can build things as soon as I know the syntax of the language I am working with. Just like now, I can just go fast through your videos. Just wanted to let you know that your videos are very clear for beginners. Thank you for this series, I think I will learn when I get to your more advanced stuff about classes and such things.
@ProgramWithGio
@ProgramWithGio Жыл бұрын
That's awesome, thank you, I appreciate it. Yes it gets more fun later on 🙂
@ShinigamiAnger
@ShinigamiAnger 3 жыл бұрын
This series is so well done, I'm amazed. Well paced, well explained, and so complete, there are infos that I couldn't find in any other course, probably not for total beginners, but definitely of a quality that is very rare to find.
@ProgramWithGio
@ProgramWithGio 3 жыл бұрын
That's great to hear, thank you so much. First section of the course which is videos numbered 1.* are beginner-friendly so I think it should not be too hard for total beginners to follow. Do you mean by total beginners as someone who has no prior coding experience at all & is starting with PHP? If that's the case then I would agree that it might be a bit harder but should still be able to pick it up, might need to rewatch some videos multiple times though.
@ShinigamiAnger
@ShinigamiAnger 3 жыл бұрын
@@ProgramWithGio Hi, yes exactly, sorry for being unclear, but I didn't mean it in a negative way, the quality is truly mind blowing, I'm sure that by following along with practice this is a perfect course for everyone. I'm already familiar with php, but with all the informations in this course I feel like finally going to the next level, I can see a lot of details that I have been missing and concepts that were unknown to me. I can't thank you enough and I wish you all the best.
@ProgramWithGio
@ProgramWithGio 3 жыл бұрын
No worries, I didn't think it was negative in any way, I'm always open for feedback. Thank you so much 🙏. Glad you found my videos helpful
@s4f4y4t9
@s4f4y4t9 3 жыл бұрын
Most of the php tuorial on youtube are outdated,thanks for your effort
@ProgramWithGio
@ProgramWithGio 3 жыл бұрын
You're welcome 👍
@manolisgkoulias8290
@manolisgkoulias8290 3 жыл бұрын
You are doing a great job, I ll definetely recomend this series to others.
@ProgramWithGio
@ProgramWithGio 3 жыл бұрын
Thank you. I appreciate it 🙌
@prabu2778
@prabu2778 3 жыл бұрын
Me too
@LaplaceFactsHub-kr4dd
@LaplaceFactsHub-kr4dd 2 ай бұрын
wow probably the best program tutor, very detailed and understandable.thanks a lot
@ProgramWithGio
@ProgramWithGio 2 ай бұрын
You are welcome & thank you 💙
@SynMlyn
@SynMlyn 9 ай бұрын
A big shoutout to Gio for his generosity in sharing his PHP expertise!
@ProgramWithGio
@ProgramWithGio 9 ай бұрын
Thank you
@wafflesexploit
@wafflesexploit Жыл бұрын
I know you are already bombarded with comments saying how your videos are great, which they really are! Even then, I just wanna say that I love the fact that you don't have topics scattered between videos, instead you have a dedicated tutorials with all information you could ever want about a certain topic. I'm learning by myself PHP, and it makes taking notes so easier. So thank you so much for this great tutorials, and hope you continue growing and publishing top tier videos, as well!
@ProgramWithGio
@ProgramWithGio Жыл бұрын
Happy to hear that, thank you 🙌. Feel free to ask questions as you are going through the series 👍
@jewgienijbrzozowski8451
@jewgienijbrzozowski8451 3 жыл бұрын
Best stuff for learning php I got in to so far! I must say I feel lucky I got here somehow.
@ProgramWithGio
@ProgramWithGio 3 жыл бұрын
Really glad you like it. Thank you
@YourZenZonee
@YourZenZonee 3 ай бұрын
I'm still here commenting on your videos! You are really making my path to learning PHP much easier than I thought it would be. You did an amazing job, really. Thank you!
@ProgramWithGio
@ProgramWithGio 3 ай бұрын
Happy to hear, thank you
@RoneyMoon
@RoneyMoon Ай бұрын
OH MY GOD!! how come i haven't got to know about this Course... this is GODLY course mannnn! 🔥🔥
@ProgramWithGio
@ProgramWithGio Ай бұрын
Welcome & thank you
@hexdom2269
@hexdom2269 2 жыл бұрын
This course and channel is WAY underrated. Good job with your videos man!
@ProgramWithGio
@ProgramWithGio 2 жыл бұрын
Thank you 💙💙
@averageProgrammer
@averageProgrammer 2 жыл бұрын
I love your tutorials, clear and concise, and straight to the point, thank you so much for bringing out this series. If it's possible please bring a series just like this on the Laravel framework, I'll be happy to support you.
@ProgramWithGio
@ProgramWithGio 2 жыл бұрын
Thank you 🙏
@David-ok9vt
@David-ok9vt 2 жыл бұрын
Probably the most thorough video course on PHP ever produced. Thank you so much Gio. I do wish you hadn't cut out all of the gaps between sentences during editing though! 😂 I find watching you on .75 speed compensates and gives me just about enough time to take in the concepts and examples. Would second Dushyant's wish for a Laravel Framework series.
@ProgramWithGio
@ProgramWithGio 2 жыл бұрын
Thank you 💙. I was a bad editor 😁 still am but improving little by little heh
@RakibulIslam-cp8oi
@RakibulIslam-cp8oi Жыл бұрын
I had never seen this kind of informative video about arrays. Love from Bangladesh.
@ProgramWithGio
@ProgramWithGio Жыл бұрын
Thank you
@jessieren6476
@jessieren6476 3 жыл бұрын
This is the second time I have watched this video. And I have a deeper understanding of some knowledge.
@ProgramWithGio
@ProgramWithGio 3 жыл бұрын
That's great to hear
@lostcarpark
@lostcarpark 2 жыл бұрын
Very useful stuff! One thing that can be problematic with arrays is when you want to display a value in a multi-dimension array, but you're not certain all the levels will be present, so you can end up with multiple levels of checks on all the levels of the array. If you just want to display the value if present, the ?? operator can be super handy, as it won't post a warning if any of the levels or missing. For example, you might want to display $user[$next]['jobs']['current']['title'] , and if you're not sure if a user has any jobs, or a current one, or if it has a title, you can end up with something like: echo (isset($user[$next]['jobs'] && $user[$next]['jobs']['current'] && $user[$next]['jobs']['current']['title']) ? $user[$next]['jobs']['current']['title'] : ''); However, with the ?? operator, this can be simplified to: echo ($user[$next]['jobs']['current']['title'] ?? '');
@ProgramWithGio
@ProgramWithGio 2 жыл бұрын
Thank you. If you have such arrays then I would suggest a differently structured data like objects. We cover DTOs in third section so once you get to that point you'll see how DTOs can be helpful in such cases
@lostcarpark
@lostcarpark 2 жыл бұрын
@@ProgramWithGio That's true, but sometimes you have to work with an existing project, and don't have the control to restructure it. I have also been enjoying the new ?-> operator for working with this sort of structure in objects.
@miguelacosta707
@miguelacosta707 3 жыл бұрын
Great series, keep going.
@ProgramWithGio
@ProgramWithGio 3 жыл бұрын
Thank you. Will do 👍
@sampulcodemine
@sampulcodemine 3 жыл бұрын
Thank you very much for the time and effort to give this great piece a little or no cost. It is precise, simple. Thanks once again.
@ProgramWithGio
@ProgramWithGio 3 жыл бұрын
You're welcome & thank you
@nielsmartens307
@nielsmartens307 2 жыл бұрын
Thanks for this amazing video! They don't teach it like this in school.
@ProgramWithGio
@ProgramWithGio 2 жыл бұрын
Thank you 🙌
@prajwalsiwakoti9866
@prajwalsiwakoti9866 2 жыл бұрын
total quality series for people having some experience in PHP. Good going GIO
@ProgramWithGio
@ProgramWithGio 2 жыл бұрын
Thank you 💙💙
@prajwalsiwakoti9866
@prajwalsiwakoti9866 2 жыл бұрын
@@ProgramWithGio are u on Instagram/ Facebook?
@ProgramWithGio
@ProgramWithGio 2 жыл бұрын
@@prajwalsiwakoti9866 I use Twitter mainly
@iqorimane3575
@iqorimane3575 Жыл бұрын
i'm not just learning great things , i'm reallyy ENJOOOYING
@ProgramWithGio
@ProgramWithGio Жыл бұрын
Happy to hear that, thanks 💙
@iqorimane3575
@iqorimane3575 Жыл бұрын
@@ProgramWithGio 🥰
@snakemanluffy7645
@snakemanluffy7645 3 жыл бұрын
Amazing in-depth lecture. :D Thanks
@ProgramWithGio
@ProgramWithGio 3 жыл бұрын
Thank you
@Vitalii-m6r
@Vitalii-m6r Жыл бұрын
It's impossible to do without arrays. Thanks for the video!
@ProgramWithGio
@ProgramWithGio Жыл бұрын
You're welcome
@alnahian2003
@alnahian2003 Жыл бұрын
Whoop! This was a long one 😄 Never knew I could use something like, [...., 30 => 'value', 'other', 'another'....]
@ProgramWithGio
@ProgramWithGio Жыл бұрын
😄. Yea arrays are great.
@abdussukkur9080
@abdussukkur9080 3 жыл бұрын
What a great teaching Style!😮 Although already I know the PHP basic staff and OOP after that I see your videos. Because in every single video I learn new things. I see your YT about and see that your first language was PHP and also you works with Laravel. After complete the course If you create a Laravel course really It will be very helpful.💖💖 Thanks again....
@ProgramWithGio
@ProgramWithGio 3 жыл бұрын
That's great to hear, thank you. There will be more content on Laravel after this 👍
@abdussukkur9080
@abdussukkur9080 3 жыл бұрын
@@ProgramWithGio Waiting for Laravel Course.
@arturkhachatryan63
@arturkhachatryan63 3 жыл бұрын
thank you for the lesson
@ProgramWithGio
@ProgramWithGio 3 жыл бұрын
You're welcome
@guxtavp
@guxtavp 2 жыл бұрын
Wow you showed me everything behind arrays in php. thank you so much! nice videos.
@ProgramWithGio
@ProgramWithGio 2 жыл бұрын
Glad it was helpful! You're welcome & thank you 💙
@nada_mahmoud2
@nada_mahmoud2 Жыл бұрын
WOW ! To the point , understandable , really really great !
@ProgramWithGio
@ProgramWithGio Жыл бұрын
Thank you
@timiade8108
@timiade8108 3 жыл бұрын
Thanks. Very good explanation
@sumitbhardwaz
@sumitbhardwaz 2 жыл бұрын
superb lesson GIO 💙
@ProgramWithGio
@ProgramWithGio 2 жыл бұрын
Thank you
@raohammadraza
@raohammadraza 7 ай бұрын
You are teaching well amazing series please create more series specially python and Java Script
@ProgramWithGio
@ProgramWithGio 6 ай бұрын
Thank you
@ballpen9157
@ballpen9157 Жыл бұрын
I didn't know php evolve a lot. great vid. thanks.
@ProgramWithGio
@ProgramWithGio Жыл бұрын
Thank you
@johna2193
@johna2193 Жыл бұрын
Thank you so much for providing these videos Geo. I am doing at leat a lesson a day. My goal is to eventually get good enough to do short term contract work. I am old and use to do a lot of Perl coding back in the day.
@ProgramWithGio
@ProgramWithGio Жыл бұрын
You're welcome my friend & thank you. Age does not matter to be honest, just be consistent & you'll get there, good luck 🤞
@malikhaidi434
@malikhaidi434 Жыл бұрын
Gio Brother your course is well explained and it's very interesting. Brother, please make more courses with real-world projects like Javascript, Python, etc. Thank you Brother for this course . Stay blessed and Happy. 😇
@ProgramWithGio
@ProgramWithGio Жыл бұрын
Thank you 🙌
@CartmanMthrFckr
@CartmanMthrFckr 2 жыл бұрын
This is a really well made course, thank you!
@ProgramWithGio
@ProgramWithGio 2 жыл бұрын
Glad you like it. Thank you
@simxtube
@simxtube 11 ай бұрын
Now I won't need to watch more PHP array videos. I often faced challenges in Laravel when working with multidimensional arrays. I'm hopeful that this tutorial will resolve those issues. Thank you for the valuable knowledge ❤❤
@ProgramWithGio
@ProgramWithGio 11 ай бұрын
Glad it was helpful 💙💙
@alexandershnaidman8188
@alexandershnaidman8188 Жыл бұрын
So much usefull stuff, up to all details 👍👍
@ProgramWithGio
@ProgramWithGio Жыл бұрын
Glad you liked it
@cibertwin5356
@cibertwin5356 3 жыл бұрын
Thanks!!! you are doing a great job here. This is very helpful
@ProgramWithGio
@ProgramWithGio 3 жыл бұрын
Glad to hear that, you're welcome 🙌
@cibertwin5356
@cibertwin5356 3 жыл бұрын
@@ProgramWithGio Thanks 🤓. I'll definitely recommend your serie 💪🏼
@buffyaji73
@buffyaji73 Жыл бұрын
Great work Appreciated, thanks a lot.
@ProgramWithGio
@ProgramWithGio Жыл бұрын
Thank you 🙏
@lubnaboghara8690
@lubnaboghara8690 2 жыл бұрын
good explanation.....................
@ProgramWithGio
@ProgramWithGio 2 жыл бұрын
Thank you
@angus-mcritchie
@angus-mcritchie 3 жыл бұрын
Love the videos, great pace and good clear info. I'm interested is learning why many developers use keyed arrays instead of using a StdClass object, for example at 8:57 it would make sense for me for each programming language to be an object. What am I missing as this seems common practice?
@ProgramWithGio
@ProgramWithGio 3 жыл бұрын
Thank you. You could use StdClass objects for sure, if you have a defined structure then objects probably make more sense but also associative arrays are pretty common. Instead of StdClass object you could create an entity class or a DTO that would serve similar purpose. The reason I did not use or talk about objects in this lesson is because objects are covered in 2nd section of the course
@jailsoncarneiro4936
@jailsoncarneiro4936 Жыл бұрын
The last tip is fkn amazing!
@ProgramWithGio
@ProgramWithGio Жыл бұрын
Thanks 🙏
@ياوجودي-ز7د
@ياوجودي-ز7د 2 жыл бұрын
thank you so much for your efforts
@ProgramWithGio
@ProgramWithGio 2 жыл бұрын
You're welcome 🙌
@nielsofficeofficial9706
@nielsofficeofficial9706 2 жыл бұрын
Thank you, Gio! you are really amazing ! :))
@ProgramWithGio
@ProgramWithGio 2 жыл бұрын
Thank you 🙌
@dgloria
@dgloria 3 жыл бұрын
Great job. Love the example at 11:00. Who is Gio?
@ProgramWithGio
@ProgramWithGio 3 жыл бұрын
Thank you 🙌. Gio is short for my name
@rimantasdanilevicius6754
@rimantasdanilevicius6754 3 жыл бұрын
Great and smooth lesson about arrays! And Again I learned and heard new info which I never heard before. I like that you make points where developer should be careful, where can be problems. Lessons well explained that I wondering is it really so natural or you do your homework too? :D Thanks for lesson and waiting for next!
@ProgramWithGio
@ProgramWithGio 3 жыл бұрын
Thank you. So my strategy for recording is that I write down what I know, main points, things to be aware of, etc. Then I do research to confirm that what I know is still valid in the current version because as you know PHP advances & introduces new things, deprecates old stuff, & even the standards change sometimes. And based on the research I make adjustments to my notes and usually I discover some things during this research phase too that I think would be beneficial for developers to know. Some things are small details but in my opinion, these small details play a big role later in programming & that applies to any programming language, not just PHP. In short, yea I do research & homework for sure :)
@rimantasdanilevicius6754
@rimantasdanilevicius6754 3 жыл бұрын
​@@ProgramWithGio Such comment really brings confidence to your content quality! I really cant wait to see what kind content you will bring then or If you will be teaching intermediate PHP stuff!
@ProgramWithGio
@ProgramWithGio 3 жыл бұрын
@@rimantasdanilevicius6754 thank you very much. Yes we will be doing intermediate/advanced topics. Section 1 of course is gonna end soon and we'll begin section 2 which is all about OOP and some cool topics. Section 3 is more advanced stuff. This will be a long course, it won't be a "learn php in 3 hours" type because I want to make sure I cover important topics & in depth.
@rimantasdanilevicius6754
@rimantasdanilevicius6754 3 жыл бұрын
@@ProgramWithGio Sounds you have plan, and that is really great! Please cover SOLID principles and help to understand how to right code more cleaner. Most examples and exercises on youtube or other channels is just basics and follows no SOLID principles, and such lessons do not train brains to think like programmer should think and does not covers intermediate or advance topics. Hoping in your future projects and lessons you will include exercises and examples which will help train brains work :D
@ProgramWithGio
@ProgramWithGio 3 жыл бұрын
@@rimantasdanilevicius6754 Yup, clean & simple code is part of the course. Once we'll get towards the end of Section 2 & begin Section 3 you'll see more project-like tutorials where we'll write more code. As for SOLID, it's great but sometimes it gets misused or over-used, I'll be sure to cover that as well.
@QorashyTech
@QorashyTech Жыл бұрын
Thanks!
@ProgramWithGio
@ProgramWithGio Жыл бұрын
Thank you for your support 💙
@IsfhanAhmed
@IsfhanAhmed 3 жыл бұрын
awesome teacher
@stefanbirsan3320
@stefanbirsan3320 3 жыл бұрын
the best!
@ahmedhabeeb2499
@ahmedhabeeb2499 3 жыл бұрын
thank you, we need to end the course real project
@ProgramWithGio
@ProgramWithGio 3 жыл бұрын
Yes, we'll do real projects towards the end of the course. We are still at early stage in the course 👍
@ahmedhabeeb2499
@ahmedhabeeb2499 3 жыл бұрын
@@ProgramWithGio thank you very much for your effort
@ProgramWithGio
@ProgramWithGio 3 жыл бұрын
@@ahmedhabeeb2499 you're welcome 🙌
@EgorDemeshko
@EgorDemeshko 9 ай бұрын
intresting, i wonder if access to assosiative array(with key, ) in php , works as hash table?
@ProgramWithGio
@ProgramWithGio 9 ай бұрын
Yes, internally I think it uses hash table mechanism
@zahrajalali2256
@zahrajalali2256 Ай бұрын
like other videos, best of its kind!
@ProgramWithGio
@ProgramWithGio Ай бұрын
💙💙
@maysamch62
@maysamch62 Ай бұрын
One of the best in its kind
@ProgramWithGio
@ProgramWithGio Ай бұрын
Thank you 💙
@faramarztayyari3734
@faramarztayyari3734 3 жыл бұрын
hi why when I compare empty array with empty string or 0 , php return false ? Isn't it true that empty array cast to 0 and if other side be zero , result shod be true in loose compare?
@faramarztayyari3734
@faramarztayyari3734 3 жыл бұрын
I found a answer for own question :) array is always greater then anything , because of that when compare array with anything result is false.
@ProgramWithGio
@ProgramWithGio 2 жыл бұрын
I'm sorry for the super late reply. KZbin did not notify me about this & just came across it. Glad you figured it out 💙
@montassiir
@montassiir Жыл бұрын
thank you
@ProgramWithGio
@ProgramWithGio Жыл бұрын
You're welcome 🙌
@kenjohnsiosan9707
@kenjohnsiosan9707 2 жыл бұрын
thank u sir.
@ProgramWithGio
@ProgramWithGio 2 жыл бұрын
You're welcome, 💙
@Kelz_codes
@Kelz_codes 6 ай бұрын
Another way of adding to an array is using "..." operator $a = ['a', 'b', 'c']; var_dump([...$a, ]);
@ProgramWithGio
@ProgramWithGio 5 ай бұрын
Its more like creating a new array while combining the other array elements with new, but yes
@WolfrupvanSen
@WolfrupvanSen Жыл бұрын
pls make a video on which extensions you are using pls make some small video
@ProgramWithGio
@ProgramWithGio Жыл бұрын
I don't use any extensions, just vanilla phpstorm IDE
@WolfrupvanSen
@WolfrupvanSen Жыл бұрын
@@ProgramWithGio ok ty
@jessieren6476
@jessieren6476 3 жыл бұрын
Many thx
@ProgramWithGio
@ProgramWithGio 3 жыл бұрын
You're welcome
@sheezanawaz476
@sheezanawaz476 2 жыл бұрын
Please guide me in this situation . I wanna to store hallID as a key and hall_Capacity as a value and these keys and values we fetch from Database Table. $examination_hall = array( $hallID=>$capacity ); print_r($examination_hall); // ( [1] => 10 [2] => 20 [3] => 30 ) I want output like this but output showing only [3] => 30
@ProgramWithGio
@ProgramWithGio 2 жыл бұрын
Because you are overwriting the array every time. Do it this way $examination_hall[$hallID] = $capacity
@sheezanawaz476
@sheezanawaz476 2 жыл бұрын
@@ProgramWithGio Thank you so much .values with keys are stored in array but I have another issue. I want to use hall_id in insert query .For example if first hall capacity are 10 then first hall_id use ten time only in this query after this it comes to second hall_id and then third hall_id according to capacity. Now all values are stored in array but still in insert query use hall_id 3 only .i write code for this plz check it $examination_hall[$hallID] = $capacity; foreach ($examination_hall as $hall) { $currenthall_cap=" "; / / this variable declare for store the current capacity of hall against of each hall_id $currenthall_cap = $hall; while ($currenthall_cap > 0 && $StudentCount > 0 ){ $schedule = "INSERT INTO exam_sched (student_id, hall_id) VALUES({$studentID[$studentCounter]},{$hallID})"; if(mysqli_query($conn,$schedule)); { $studentCounter++; $currenthall_cap--; // when current hall capacity become 0 it must be go to second hall but the hall_id remain same. $StudentCount--; } } }
@ProgramWithGio
@ProgramWithGio 2 жыл бұрын
@@sheezanawaz476 sorry but it's hard to understand what the issue is. Ping me on Twitter and send me a screenshot of formatted code with a little more explanation
@sheezanawaz476
@sheezanawaz476 2 жыл бұрын
@@ProgramWithGio but I have no tweeter account.
@omerchen7948
@omerchen7948 2 жыл бұрын
ty
@ProgramWithGio
@ProgramWithGio 2 жыл бұрын
You're welcome
@ahmedmahdy6676
@ahmedmahdy6676 2 жыл бұрын
Thank you!
@ProgramWithGio
@ProgramWithGio 2 жыл бұрын
You're welcome
@open-mindedlearners
@open-mindedlearners 2 жыл бұрын
Hi Gio, I was thinking about the [ 'version' => 7.4, 'releaseDate' => 'Nov 28, 2019' ], comma at the end of this array and there is also comma that is at the end of index1(array) in python versions. Are these commas necessary and also at the end of versions enclosing these arrays
@ProgramWithGio
@ProgramWithGio 2 жыл бұрын
Hey, no they are not necessary its optional, so mostly its up to you & the conventions that you follow.
@veshalenramsamy1342
@veshalenramsamy1342 Жыл бұрын
🏆legendary
@ProgramWithGio
@ProgramWithGio Жыл бұрын
Thank you
@mikhailmcrae5924
@mikhailmcrae5924 Жыл бұрын
Why use isset() function when you can get the same result putting a variable as a parameter for an if statement?
@ProgramWithGio
@ProgramWithGio Жыл бұрын
There are differences. Checking for variable in if statement checks for truthy value while isset checks if the variable is defined or key is set in array
@bibid8940
@bibid8940 2 жыл бұрын
4:12 made me chuckle lol
@ProgramWithGio
@ProgramWithGio 2 жыл бұрын
😁😁
@lovietech3885
@lovietech3885 2 жыл бұрын
Is there anything like this in php as how it is in python without using loop; num = [4, 7, 9, 0, 2] print num[0:2] This is to print from index 0 to index 2 which the output is 4, 7, 9
@ProgramWithGio
@ProgramWithGio 2 жыл бұрын
Not yet
@lovietech3885
@lovietech3885 2 жыл бұрын
@@ProgramWithGio Alright, thank you so much
@WaliaIbex
@WaliaIbex 8 ай бұрын
The Ethiopian God bless you 🎉🎉🎉
@ProgramWithGio
@ProgramWithGio 8 ай бұрын
Thank you & you too 🎉
@andrzejpolachow5396
@andrzejpolachow5396 8 ай бұрын
@@ProgramWithGio do you think there will be still demand for PHP developers?
@ProgramWithGio
@ProgramWithGio 8 ай бұрын
In my opinion yes
@itzcallmepro4963
@itzcallmepro4963 3 жыл бұрын
thanks for the effort . source code would be better
@ProgramWithGio
@ProgramWithGio 3 жыл бұрын
You're welcome. Later in the course I provide source code for certain videos. Didn't think source for this video was important since it's mainly overview
@magedghabour2466
@magedghabour2466 Жыл бұрын
Why null cast to empty string Not 0 . in Index three cast 1.8 to integer and in Index four cast to string why ?! 11.03
@ProgramWithGio
@ProgramWithGio Жыл бұрын
That's just how it gets casted when used as array key. You can read more about it in the docs here: www.php.net/manual/en/language.types.array.php `Strings containing valid decimal ints, unless the number is preceded by a + sign, will be cast to the int type. E.g. the key "8" will actually be stored under 8. On the other hand "08" will not be cast, as it isn't a valid decimal integer. Floats are also cast to ints, which means that the fractional part will be truncated. E.g. the key 8.7 will actually be stored under 8. Bools are cast to ints, too, i.e. the key true will actually be stored under 1 and the key false under 0. Null will be cast to the empty string, i.e. the key null will actually be stored under "".`
@Laracoding
@Laracoding Жыл бұрын
Is array a data structure or a data type ??
@ProgramWithGio
@ProgramWithGio Жыл бұрын
I would say both
@skratchyy
@skratchyy 6 ай бұрын
გიო ლარაველის კურსი როდის დაიდება :D
@ProgramWithGio
@ProgramWithGio 6 ай бұрын
ზაფხულის ბოლოსკენ ალბათ. დავიწყე მუშაობა კურსზე
@skratchyy
@skratchyy 6 ай бұрын
მადობა
@najma242
@najma242 3 ай бұрын
I think this section on array and keys should have been broken into two videos...it's alot to comprehend with keys and array indexes
@ProgramWithGio
@ProgramWithGio 3 ай бұрын
Thanks for the suggestion
@pravin1074
@pravin1074 2 жыл бұрын
Array keys why string '1' replace intger 1.
@ProgramWithGio
@ProgramWithGio 2 жыл бұрын
Where did you see '1'? I used integers for keys. In one part I used '1' to show an example that '1', 1 and true would be same keys and overwrite.
@pravin1074
@pravin1074 2 жыл бұрын
@@ProgramWithGio in 10:22sec foo baz example you using string and integer key?
@ProgramWithGio
@ProgramWithGio 2 жыл бұрын
@@pravin1074 yea that's to demonstrate that it overwrites. I also use float right after 1.8 and as you see the result is that last one overwrites.
@ProgramWithGio
@ProgramWithGio 2 жыл бұрын
I understand your question now. The reason string overwrites integer is because it comes after, same with float 1.8 value overwrites previous ones because all of those get cast into 1
@ivandosev9779
@ivandosev9779 2 жыл бұрын
$arr = [PHP_INT_MAX => 1, 2, 3]; Warning: Cannot add element to the array as the next element is already occupied
@ProgramWithGio
@ProgramWithGio 2 жыл бұрын
I would assume because it can't hold anymore values? I'm not sure to be honest, maybe something has to do with the way arrays are implemented in PHP, they are essentially hash tables. This article might help: www.npopov.com/2012/03/28/Understanding-PHPs-internal-array-implementation.html
@DasHeino2010
@DasHeino2010 2 ай бұрын
daddy? :3 5:16
@ProgramWithGio
@ProgramWithGio 2 ай бұрын
@@DasHeino2010 ??
@DasHeino2010
@DasHeino2010 2 ай бұрын
@@ProgramWithGio "that you" souded like it. I found it funny but its also late so I might just be tired and lonely. This tutorial helped me greatly tho! Just what I needed to make this work!
@ProgramWithGio
@ProgramWithGio 2 ай бұрын
@@DasHeino2010 haha, that's funny. Glad it was helpful 🙏
@dogvscatfunny9956
@dogvscatfunny9956 2 ай бұрын
Well, it's not clear at all what he's talking about there. Who understood?
@ProgramWithGio
@ProgramWithGio 2 ай бұрын
@@dogvscatfunny9956 can you be more specific on what's not clear?
@dogvscatfunny9956
@dogvscatfunny9956 2 ай бұрын
@@ProgramWithGio Examples with arrays, key-value records, it is not clear what this is, the form of the record itself is not clear
@ProgramWithGio
@ProgramWithGio 2 ай бұрын
@@dogvscatfunny9956 the lesson is about arrays, I think I clearly explain what arrays are. The meaning of values don't matter in this. Have you watched series from beginning or just watching this video?
@dogvscatfunny9956
@dogvscatfunny9956 2 ай бұрын
@@ProgramWithGio At first, of course, it was clear, but now you can’t understand anything, where it comes from, and as a result, nothing is clear anymore.
@ProgramWithGio
@ProgramWithGio 2 ай бұрын
@@dogvscatfunny9956 I'm not understanding to be honest what exactly isn't clear. Like what comes from where? If you can't explain the exact problem you are having then I'm afraid I can't really help you. Can you give me a specific example like a timestamp in the video and explain what's not clear?
@AxxionMarketPlace-iu6ri
@AxxionMarketPlace-iu6ri Жыл бұрын
Thank you
@ProgramWithGio
@ProgramWithGio Жыл бұрын
You're welcome
@whisperscribe
@whisperscribe 6 ай бұрын
thank you!
@ProgramWithGio
@ProgramWithGio 5 ай бұрын
You're welcome!
@ilya_123__
@ilya_123__ Жыл бұрын
thank you
@ProgramWithGio
@ProgramWithGio Жыл бұрын
You're welcome
PHP associative arrays explained
11:21
Bro Code
Рет қаралды 6 М.
Wait for the last one 🤣🤣 #shorts #minecraft
00:28
Cosmo Guy
Рет қаралды 25 МЛН
Elza love to eat chiken🍗⚡ #dog #pets
00:17
ElzaDog
Рет қаралды 20 МЛН
Human vs Jet Engine
00:19
MrBeast
Рет қаралды 188 МЛН
風船をキャッチしろ!🎈 Balloon catch Challenges
00:57
はじめしゃちょー(hajime)
Рет қаралды 29 МЛН
They admit PHP is Back 2024 | Tech Influencers Now Realize PHP is actually good
10:41
Master Go Programming With These Concurrency Patterns (in 40 minutes)
46:15
PHP Operators Part 2 - Full PHP 8 Tutorial
16:13
Program With Gio
Рет қаралды 48 М.
PHP Float Data Type - Full PHP 8 Tutorial
7:51
Program With Gio
Рет қаралды 59 М.
How To Work With Arrays In PHP - Full PHP 8 Tutorial
15:09
Program With Gio
Рет қаралды 53 М.
PHP $_GET and $_POST explained
11:43
Bro Code
Рет қаралды 16 М.
Wait for the last one 🤣🤣 #shorts #minecraft
00:28
Cosmo Guy
Рет қаралды 25 МЛН