Dreevoo.com | Online Learning and Knowledge Sharing
 
Home | FORUM | Published content on Dreevoo.com | Start learning PHP - part 2
Gost
Click to view your profile
Shortcuts
Fresh topics Fresh topics
My topics My topics
Unanswered topics Unanswered topics
Forum rules Forum rules
Who is online?
Registered users: Registered users:
Guests: Guests:

 
  Start learning PHP - part 2
   
   
 
 
 
USER
MESSAGE
  Click to open user profile  
12th Feb 2013, 12:00 AM
Often in PHP you want the same block of code to run over and over again and instead of adding several almost equal lines, you can use loops to perform this task much easier.


Link to the content ...
 
 
  Click to open user profile  
12th Feb 2013, 1:36 AM
Keep them coming, thank you!
 
 
  Click to open user profile  
23rd Sep 2013, 4:49 AM
Hy there!I hope i'm not late with the question, but i noticed the dots used in section 2. Arrays in the echo commands, also in section 3. Foreach in the end of the echo command. What is the purpose or role of the dots in php?Great tuts, thank you!
 
 
  Click to open user profile  
23rd Sep 2013, 3:02 PM
Don't worry, you are not late. We are always here.

To answer your question, dot in PHP is operator for concatenating strings.

To give you a simple example:
$a = "Hello ";
$b = "world";
$c = $a . $b; // the value of $c variable is now "Hello world"

In the lesson in step 2, the dot operator is used just for better formatting of output text by appending ", " after the names. Otherwise it is not necessary.

I hope you now get the idea on how to use dot operator. If you have any additional questions just let me know and I will do my best to answer you.



 
 
  Click to open user profile  
24th Sep 2013, 4:36 AM
Yes, now i understand, thank you!

I've started to learn php yesterday :D so i'm a huge question mark with arms and legs, but thanks to this awesome tut, i actually understand what i'm seeing.
Thanks again

changed: Ascocrist (24th Sep 2013, 1:37 PM)
 
 
  Click to open user profile  
24th Sep 2013, 4:45 AM
I was looking at the other php tutorials but they are way above my level.
Could you point me to more tutorials, similar to yours?

Thank you!
 
 
  Click to open user profile  
24th Sep 2013, 5:32 AM
You can try this one:
http://www.w3schools.com/php/

I would also suggest that when you learn something new, you always try this in practice by creating a simple example.

If you have any additional questions just let me know.
 
 
  Click to open user profile  
24th Sep 2013, 10:57 PM
Thank you!

If i'll come across any problems, i'll surely ask

Thanks again!
 
 
  Click to open user profile  
7th Apr 2024, 7:06 AM
nice

changed: zarajoseph (7th Apr 2024, 7:13 AM)
 
 
  Click to open user profile  
7th Apr 2024, 7:12 AM
Learning PHP is a great choice if you're interested in web development, as PHP is a widely used server-side scripting language that powers many websites and web applications. Here's a step-by-step guide to help you get started with learning PHP red hat online training platform provides flexibility for professionals to learn at their own pace and from anywhere with an internet connection.


 
 
 
   
   
 
online learning made for people
Dreevoo.com | CONTRIBUTE | FORUM | INFO