PHP Tutorial (& MySQL) #7 - Arrays

  Рет қаралды 112,434

Net Ninja

Net Ninja

Күн бұрын

Пікірлер: 51
@inventsable
@inventsable 5 жыл бұрын
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.
@phily8020
@phily8020 4 жыл бұрын
Agree there is definitely a gap in the market, for massively simplifying code...
@D2SProductions
@D2SProductions 4 жыл бұрын
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.
@dibbyabarua9499
@dibbyabarua9499 3 жыл бұрын
So, associative arrays are similar to std::maps in C++ ... that is very interesting... Love your videos. Very clear, concise, and easily understandable.
@internetuser2845
@internetuser2845 4 жыл бұрын
Ninja has got the best tutorials for php.... Love it😘
@soumadip_banerjee
@soumadip_banerjee 4 жыл бұрын
The best teacher.. And my best KZbin channel on Tech! God bless UK.. LOL ❤️❤️❤️
@Eric196910
@Eric196910 3 жыл бұрын
I really love your tutorial. Thanks. Your way of teaching is so clear and is helping me a lot.
@nielfollero5
@nielfollero5 2 жыл бұрын
Is this tutorial still relevant? I'm learning php and I'm depending my php knowledge to this tutorial now.
@Eveer.r
@Eveer.r 2 жыл бұрын
impressed by your creativity with people names : |)
@dotunn
@dotunn 4 жыл бұрын
lol, loving the street fighter and Japanese references. That enough made me a fan, very straightforward teaching thanks!
@theceo8100
@theceo8100 4 жыл бұрын
Am Enjoying this so much Shaun, my words may not be enough to appreciate you. but i say thanks
@T21-TwentyOneTrailers.
@T21-TwentyOneTrailers. 5 жыл бұрын
Nice and easy, thanks for your efforts.
@arc8696
@arc8696 2 жыл бұрын
Thank you. great series.
@emmadas
@emmadas 3 жыл бұрын
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()
@Vision2729
@Vision2729 5 жыл бұрын
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!
@BigyetiTechnologies
@BigyetiTechnologies 5 жыл бұрын
Should just involve writing a database connection string which contains database server, database name, username and password. If he doesn't cover it, there are generators online that generate one for you.
@eti2411
@eti2411 Жыл бұрын
Thanks mate. very hekpful 💯💯💯
@mdyousufislam5812
@mdyousufislam5812 3 жыл бұрын
Thank You so much the course is really helpful
@mydreamynights
@mydreamynights 3 жыл бұрын
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 :)
@shubhamgupta4300
@shubhamgupta4300 5 жыл бұрын
Shaun plays mario a lot. by the way nice tutorial.
@NetNinja
@NetNinja 5 жыл бұрын
I wish I had the time to! XD
@faiedweb
@faiedweb 5 жыл бұрын
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 ?
@atishmhatre4895
@atishmhatre4895 5 жыл бұрын
nice Tutorial Shaun, Thank You!
@Shivam-jh5ke
@Shivam-jh5ke 4 жыл бұрын
How can I push multiple values in associative array. I mean the syntax?
@kigali_glam
@kigali_glam 4 жыл бұрын
that man save me now ...!
@mandizzle0517
@mandizzle0517 5 жыл бұрын
thanks net ninja!
@Mustafa-cv1pk
@Mustafa-cv1pk 5 жыл бұрын
thank you ))) are we gonna use associative ever ??
@vip51000
@vip51000 4 жыл бұрын
Do you have a video with an associative array?
@zizou5638
@zizou5638 4 жыл бұрын
I tried to use the array_push() function to associative arrays but it does not work perfectly?? it only allows me to push values and it sets it up to a default key starting from index 0... so it there a way to use the array_push() to add the desired key&value pair?
@DZ-zo1fk
@DZ-zo1fk 4 жыл бұрын
you don't have php course on udemy?
@astratow
@astratow 4 жыл бұрын
Hi GangMaster!
@yamato23488
@yamato23488 3 жыл бұрын
16:17 what if I only want to get 'mario' => 'orange' in the array?
@DmitryPopovFreeWind
@DmitryPopovFreeWind 5 жыл бұрын
Thank you so much!
@hl6903
@hl6903 5 жыл бұрын
some error shows array output Parse error: syntax error, unexpected '[' in C:\wamp\www\tutorial_php\L7-array\index.php on line 4
@kevinmensah1892
@kevinmensah1892 5 жыл бұрын
Same here
@hl6903
@hl6903 5 жыл бұрын
@@kevinmensah1892 solution is to update wampserver or xamp it's working on new version of php servers
@derrickdelancey555
@derrickdelancey555 4 жыл бұрын
If the array was $age = [1,2,3,4].......and 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 => ?
@screamingshroom3221
@screamingshroom3221 4 жыл бұрын
Yeah, but you have to use a foreach loop for that. foreach($age as $val){ echo "$val "; } this would result in seeing 1 2 3 4
@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
@samuelakinnuoye9938
@samuelakinnuoye9938 Жыл бұрын
hopefully this works.
@zaffarmughal5478
@zaffarmughal5478 5 жыл бұрын
Hey Super Ninja! @ 13:05 why using print_r to print the whole array as they are all sting, previously you used it because of integers in the array. Is there any other reason too?
@kamrannawaz5106
@kamrannawaz5106 5 жыл бұрын
print_r is the function it will print the whole array both indexed array and associated array..
@devyanichoubey692
@devyanichoubey692 3 жыл бұрын
Code is not available on github
@sean6436
@sean6436 5 жыл бұрын
i get this error when i try to create the ages array: Parse error: Invalid numeric literal in C:\xampp\htdocs\CMS\index.php on line 55
@sean6436
@sean6436 5 жыл бұрын
i created a new array called Mages and it worked.
@bernard7167
@bernard7167 2 жыл бұрын
ok cool!
@nicolaiveliki1409
@nicolaiveliki1409 5 жыл бұрын
so associative arrays are just key-value-maps
@t3ntube357
@t3ntube357 4 жыл бұрын
I learn JS first, and OMG what a mess this PHP
@Ab-cj6gl
@Ab-cj6gl 3 жыл бұрын
😂😂i'm learning php and JS on the same time and yes two different vibes man 😂😂 but for some reason i'm loving php more
PHP Tutorial (& MySQL) #8 - Multidimensional Arrays
10:07
Net Ninja
Рет қаралды 98 М.
PHP Tutorial (& MySQL) #9 - Loops
19:35
Net Ninja
Рет қаралды 94 М.
Ice Cream or Surprise Trip Around the World?
00:31
Hungry FAM
Рет қаралды 21 МЛН
Disrespect or Respect 💔❤️
00:27
Thiago Productions
Рет қаралды 43 МЛН
Симбу закрыли дома?! 🔒 #симба #симбочка #арти
00:41
Симбочка Пимпочка
Рет қаралды 4,7 МЛН
Accompanying my daughter to practice dance is so annoying #funny #cute#comedy
00:17
Funny daughter's daily life
Рет қаралды 13 МЛН
PHP Tutorial (& MySQL) #41 - Classes & Objects (part 1)
11:29
Net Ninja
Рет қаралды 44 М.
Do NOT Learn Kubernetes Without Knowing These Concepts...
13:01
Travis Media
Рет қаралды 324 М.
PHP Tutorial (& MySQL) #26 - Getting Data From a Database
7:16
Net Ninja
Рет қаралды 179 М.
I tried 8 different Postgres ORMs
9:46
Beyond Fireship
Рет қаралды 437 М.
PHP Tutorial (& MySQL) #17 - Forms in PHP
16:09
Net Ninja
Рет қаралды 120 М.
Top 10 Advanced CSS Responsive Design Concepts You Should Know
20:16
Web Dev Simplified
Рет қаралды 538 М.
MySQL vs MongoDB
5:30
IBM Technology
Рет қаралды 178 М.
PHP For Beginners, Ep 7 - Associative Arrays
7:20
Laracasts
Рет қаралды 15 М.
Ice Cream or Surprise Trip Around the World?
00:31
Hungry FAM
Рет қаралды 21 МЛН