@Mertt03 What do you mean? Arrays are used in heaps of different type of programming languages. As XHTML is not a programming language, it does not 'use' arrays. Also Notepad++ is a text editor.
Sorry if I missed the point to your question, it's not very clear.
@archange156 No you didnt miss the point. A month ago i was a starter so didnt know anything about Html Javascript and Css and PHP! A mont later i know the difference between these things so i should have learned all these things before asking questions :(.
So sorry for the dumb question anyway thanks for the time answering my dumb question :( Take care
@TheYoungBucks12 that ti is.. and java.. both languages are similar and its close to perl as well.. they are all object oriented programing so its all kinda similar
By the way when going to a private institution, what they want is those federal dollars, so instructors usually trying to collect a paycheck, and the school trying to recruit students don't always provide quality education. This genteleman is spectacular in teaching.
This comment has received too many negative votesshow
Why he's declarating 2times the elements of the arrays? I think this guy learned all php he knows alone, so he can't explain things properlly, 'cause he dunno the basic staff and how it really works in your computer. I think that if U wanna be a good programmer you should learn it at SCHOOL!
He is demonstrating two different ways to declare an array. You can either declare everything at once by:
$people=arrary('a1','a2','a3') Or do it individually by:
$people[0]="a1";
$people[1]="a2";
His only mistake was not deleting the first array he wrote before he moved on to the second method of declaring arrays so people who can't think three dimensionally wont get any wrong ideas about having to declare twice.
ok before i watch this i want to say arrays never are explained in a book properly to understand so if this guy explains it well i willsend him a free book. i doubt he will but we will see after the video is over i will let you know if he explained it well. my degree is in math an array is simple but php books suck at explaining it
nice tut for beginners! but you should have commented the three people lines for them to see it works. the way you shown it seems like it overwritten the variables. anyway, good job! tnx for the tutorials!
So this is only possible with PHP and not with XHTML/Notepad++?
Mertt03 2 months ago in playlist PHP Programming Tutorials
@Mertt03 What do you mean? Arrays are used in heaps of different type of programming languages. As XHTML is not a programming language, it does not 'use' arrays. Also Notepad++ is a text editor.
Sorry if I missed the point to your question, it's not very clear.
archange156 1 month ago
@archange156 No you didnt miss the point. A month ago i was a starter so didnt know anything about Html Javascript and Css and PHP! A mont later i know the difference between these things so i should have learned all these things before asking questions :(.
So sorry for the dumb question anyway thanks for the time answering my dumb question :( Take care
Mertt03 1 month ago
@Mertt03 Hey, no problem! It's good to know you went off and learned all these things.
If you don't ask questions, you'll never learn ;)
archange156 1 month ago
Guys and Girls, if you want to print out all the names just do the following:
echo $people[0].$people[1].$people[2]; Boom
ItalianNatural 2 months ago in playlist PHP Programming Tutorials
Nice tutorial. But what if i want to add 0,1 ?. How can i ?. Is it possible. Thanks
GamesForLifes999 4 months ago
I'm watching this on 2011, where Bucky has advance equipment to make tutorials and also has a podcast. That's an amazing improvement! Nice job Bucky.
durtX43 5 months ago in playlist PHP Programming Tutorials
this is a lot like python
TheYoungBucks12 6 months ago
@TheYoungBucks12 that ti is.. and java.. both languages are similar and its close to perl as well.. they are all object oriented programing so its all kinda similar
xmodrock 6 months ago
@TheYoungBucks12 It is indeed. Also similar to Java as well. =)
VagfaceScripting 4 months ago
if i want to display all three names at time then what?
sushant1942 7 months ago
@sushant1942 You do a loop, and what you want the loop to do is print one item every time a loop does a step. If you need more info, just reply
primax29 6 months ago in playlist PHP Programming Tutorials
you sound more lively during your javascript tutorials
kimyboi777 7 months ago
i still dont get array. its like assigning values. how can we use it in real life projects.
wheay21 10 months ago
@wheay21 use it in a for loop or summin
NOTE: this is written in java not php but it is still the same really
example:
String array[] ("Tom", "Joe", "Adam");
for(int i =0; i < array.length;i++) // this bit is the for loop to go through the array till i is the same as the array
system.out.println(array[i]) // this bit prints out a line on the screen of the current word in the array
thats the basic principle i anybody else has got questions then just pm me :)
youdripblood 9 months ago
Tonny
hammadghulam 11 months ago
whats the difference between 'tom' and "tom"?
NeigborhoodBoards 1 year ago
@NeigborhoodBoards
the place in the memory
SnijdersMax 11 months ago
@NeigborhoodBoards
the address in the memory
SnijdersMax 11 months ago
@NeigborhoodBoards
it's just another way of achieving the same thing: setting Tom in the array at [0]
SnijdersMax 11 months ago
i have a doubt teacher x) when do you know when you got to use 'tom' or "tom"?
I mean, how do I know when I got to use apostrophes or those things which name I am too sleepy to remember ---> "
Diifusal 1 year ago 2
@Diifusal
did you find out yet cuz i want to know also. lol
liquidmetaltech 1 year ago
@liquidmetaltech no, not yet x)
Diifusal 1 year ago
Cool shot, thanks
samiwistler 1 year ago
This has been flagged as spam show
CHECK OUT MY CHANEL TO LEARN HOW TO LEARN IT IN ABOUT 17 HOURS
imwithswat 1 year ago
how can i just make an array and not give any value into it and just give it values when i need em?
something like &people=array[10] to give it 10 values?
TheSecOrg 1 year ago
@TheSecOrg you can declare $people=array()...i hope that i understood correct
SerbStef 1 year ago
guys, how to get inputs of array using forms?
rolandroiroi 1 year ago
like python
MrSaggat 1 year ago
This is slightly off topic, but I've been wondering it for a while.
Why is your Windows XP interface glossy/shiny, and regular Windows XP versions are plain?
Is it a custom theme or different version of Windows XP?
kamprath447 1 year ago
does PHP have vectors? btw really good tutorials. Guessing you can't make arrays on the fly in PHP?
Haxortiz 1 year ago
Thank you. - behindvfx
mangoprojects 1 year ago
By the way when going to a private institution, what they want is those federal dollars, so instructors usually trying to collect a paycheck, and the school trying to recruit students don't always provide quality education. This genteleman is spectacular in teaching.
cicero60804 1 year ago
@cicero60804 Agreed, I wish I had him, my teacher was terrible now I'm having to reteach myself.
spaceface31 1 year ago
Why thank you Roy.
MsSmalone 1 year ago
Looks like Java. So if you learn and understand this you won't have any problem with Java. :-)
NirozWoW 1 year ago
bulad2007 2 years ago
Hey sturm7drang, maybe he learned it the same place you learned English.
MsSmalone 2 years ago
This comment has received too many negative votes show
Why he's declarating 2times the elements of the arrays? I think this guy learned all php he knows alone, so he can't explain things properlly, 'cause he dunno the basic staff and how it really works in your computer. I think that if U wanna be a good programmer you should learn it at SCHOOL!
sturm7drang 2 years ago
He is demonstrating two different ways to declare an array. You can either declare everything at once by:
$people=arrary('a1','a2','a3') Or do it individually by:
$people[0]="a1";
$people[1]="a2";
His only mistake was not deleting the first array he wrote before he moved on to the second method of declaring arrays so people who can't think three dimensionally wont get any wrong ideas about having to declare twice.
hidoisan 2 years ago 2
@sturm7drang He shows both ways you dumb fuck.
TheTIprogrammer 1 year ago
@TheTIprogrammer
the 1st one doesnt work for me, dunno why..
heres the lines:
$people=array('tom','jake','tony');
$people[2];
and i get a blank page
the second method is just fine
why is that?
Vladibeer 1 year ago
@Vladibeer You have to echo it. echo $people[2];
TheTIprogrammer 1 year ago
@TheTIprogrammer
Ye that makes sence
just didnt hear the 2:33
ty
Vladibeer 1 year ago
@Vladibeer You're welcome!
TheTIprogrammer 1 year ago
@TheTIprogrammer what if im using forms, i dont know how to get inputs of array...
like if i input "300" in the form, the output should be "three hundred"?
rolandroiroi 1 year ago
@Vladibeer Because you didn't "print" or "echo" it..
replace " $people[2];" with " print $people[2]; "
StreetFamousNet 1 year ago
@sturm7drang hey sturm if u knw better then make ur tutorial and see ur own tutorial :)
saadnaeem11 1 year ago
tony macaroni?
onnoman 2 years ago
ok before i watch this i want to say arrays never are explained in a book properly to understand so if this guy explains it well i willsend him a free book. i doubt he will but we will see after the video is over i will let you know if he explained it well. my degree is in math an array is simple but php books suck at explaining it
ncbookz 2 years ago
ok yes he explained it the best, it is so easy but books make it a hard concept
ncbookz 2 years ago
you forgot to put echo $people[2]
Supreme4321 2 years ago
can i ask why you defined the $people[1] [2] [3] as each related name?
If you just echo'd $people[1] without explicitly defining it, it still printed the second name in the initial array?
pl1ght 2 years ago
maybe because he just wanted to show that you can assign them the other way?!
BackRaw 2 years ago
nice tut for beginners! but you should have commented the three people lines for them to see it works. the way you shown it seems like it overwritten the variables. anyway, good job! tnx for the tutorials!
tabskiboy 2 years ago
wow! this tutorial is really great!!
pinakapogingbata 2 years ago
Thank You Very Much!
I need somebody with a human touch!!
pinakapogingbata 2 years ago
Good tut son.
I still prefer to do it like:
$config['meta_desc'] ="Like this";
W4iCorky 2 years ago 8
python now
D34tho 2 years ago
things are starting to really clear up, much easier to learn from you than my book, that's for sure:D 5*
bobslate87 2 years ago
Thank you for your time.
huecitylite 3 years ago
thanx..
CoNiLa2 3 years ago 2
thanx..
amri5987 3 years ago 2
good tuts on array
dcool96 3 years ago 12