PHP Tutorial (& MySQL) #7 - Arrays

preview_player
Показать описание
Hey gang, in this PHP tutorial I'll show you another data type - arrays. We'll look at indexed arrays as a well as associative arrays. Arrays are a way to store multiple related values in one variable.

----------------------------------------

🐱‍💻 🐱‍💻 Course Links:

🤑🤑 Donate


🎓🎓 Find me on Udemy

Рекомендации по теме
Комментарии
Автор

Thanks so much Shaun. I've looked at other "introduction to PHP" articles and content but found they assumed so much prior knowledge that I couldn't even get started -- ended up having no idea how to use, test and run PHP locally each time -- but now thanks to you I've at least got my foot in the door enough to actually experiment and use it instead of failing at the front door.

inventsable
Автор

And the reason why the indexed array works like the way you call for the character at a certain position in a string is because a string is an array of individual characters, I learned that in my Visual Basic class in college. So when you're creating an array of strings you're actually creating a multidimensional array because you have the array of characters for each name and the array for each name entry.
In some of the older programming languages you actually had to create an string array for hold a word consisting of more than one character, an array index for each character of the word, and to have multiple words it would be a multidimensional array because in older programming languages a string only holds a single character, to old more than one character requires an array, it still works that way it's for more modern programming languages it's just built in to the string functionality instead of you having to create a string array just for a single word consisting of more than one character.

DSProductions
Автор

The best teacher.. And my best YouTube channel on Tech! God bless UK.. LOL ❤️❤️❤️

soumadip_banerjee
Автор

So, associative arrays are similar to std::maps in C++ ... that is very interesting... Love your videos. Very clear, concise, and easily understandable.

dibbyabarua
Автор

lol, loving the street fighter and Japanese references. That enough made me a fan, very straightforward teaching thanks!

dotunn
Автор

I really love your tutorial. Thanks. Your way of teaching is so clear and is helping me a lot.

Eric
Автор

Ninja has got the best tutorials for php.... Love it😘

internetuser
Автор

impressed by your creativity with people names : |)

Eveer.r
Автор

Am Enjoying this so much Shaun, my words may not be enough to appreciate you. but i say thanks

theceo
Автор

Nice and easy, thanks for your efforts.

T-TwentyOneTrailers.
Автор

Thank You so much the course is really helpful

mdyousufislam
Автор

Shaun plays mario a lot. by the way nice tutorial.

shubhamgupta
Автор

When you say parameters I think you mean arguments, since the parameters are the variables that are declared in the function itself, whereas you are actually placing values when u use the function such as array_push()

emmadas
Автор

Awesome video! When you reach MySql, could you explain how to actually use this database system, and not only in local? What I usually see is MySql connect ("localhost" "root") but what if the website will be online? Thank you!

Vision
Автор

Hello, thank you for your wonderful tutorials. I have done c and c++ before so these are very easy for me. now do I need to learn more about the basic syntaxes or these should be fine? if I need to learn more where should be the perfect place for me? thanks and love :)

mydreamynights
Автор

Thank you so much, can you please tell us how do you record your screen, and which software do you use? and how you used it ?

Sudani_Coder
Автор

16:17 what if I only want to get 'mario' => 'orange' in the array?

yamato
Автор

How can I push multiple values in associative array. I mean the syntax?

Shivam-jhke
Автор

thank you ))) are we gonna use associative ever ??

Mustafa-cvpk
Автор

If the array was $age = you perform the print_r($age) it will display onscreen Array([0]=>1, [1]=>2, [2]=>3, [3]=>4) but is there away to print all the values in the array without all added positions inside the [ ] and => ?

derrickdelancey