Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP PHP Basics (Retired) PHP Conditionals & Loops Conditionals

Why do I not remember going over concatenation?

Did I miss something? In this video he is using a period to concatenate strings and he says that he's used it before, but I don't remember ever going over concatenation..... maybe I need to go over the videos again.

7 Answers

Abraham Juliot
Abraham Juliot
47,353 Points

No, you did not miss anything. He did not cover concatenation in the previous videos.

Here is some resourceful documentation : http://php.net/manual/en/internals2.opcodes.concat.php

Yes, you might want to if you are confused. In JavaScript you use a "+", in php it is "."

James Hall-Treworgy
James Hall-Treworgy
3,326 Points

Thanks! :) This was helpful to me!

Daniel Mitchell
Daniel Mitchell
5,834 Points

I can see what you mean. I would suggest going completely through the Javascript track first. The Javascript track is much more thorough and there are enough similarities that it really helps me.

Shaun Vine
Shaun Vine
5,184 Points

Yes this is the second time that there is a video missing.

Things get missed sometimes. I just knew from experience. Keep google handy :)

Sara Scott
Sara Scott
3,968 Points

I feel confused about the PHP track in general. It's like I'm missing a ton of information. It goes from How to Build a Website (or something similar) to jumping right into datatypes and functions. There was no intro to the topic. It's too advanced even at the beginner level. Did I miss something?

I understand how you feel completely. As a beginner myself, I get confused a lot. It feels like I'm jumping right into things and I don't know what's going on. I just keep chugging along though and the more I get exposed to everything, the more I remember and understand it.

Ted Gransbury
Ted Gransbury
Courses Plus Student 1,381 Points

Agreed on the jumping right in, just rate the video/presenter at the end of the video, critique as a student "I didn't understand where x came from" or "lots of info in this video, unexplained/undefined terms being used". So far I've been adding "this video has code the last video didn't have, was difficult at first watching all of my code fail until I realized I should update my code from the previous video in the series to what this video is displaying"... that of course doesn't help explain what any of the new video code is doing/explaining but you sort of get the jist as time goes on. Keep bashing on keys to achieve the desired effect and absorb as you go. Visit w3 or google various terms as many times as needed. Hopefully by the end of the course most of what you've just button-mashed will make some sense.

In my opinion, learning programming is not a hard task..its really understanding how to put it altogether once you have the knowledge, it's very easy to forget most of what you just learned.

The Solution: Think back to grade school, when you are being taught about your native language, how are you taught and how do you end up remembering the vast majority of definitions for words, Do you actually know every definition to every word, or remember the correct grammar ("syntax" ) for writing sentences. Programming is very much the same in this aspect, it was designed to try to be as close as possible to learning a new language, so its easier for people to learn.

In this example, he clearly didn't teach us about concatenation, but instead of being confused try to think of it using the same common sense you would if someone used that word, forget the symbol and forget what it is trying to do and instead think of how you would solve this problem in your own native language.

IF someone used the word concatenation and I had no idea what it means, I would most likely google or grab a dictionary and look up what that word means. A quick google search tells me that concatenation is: "the action of linking things together in a series.", without knowing anything of the programming language I can now assume that oh it means to link things together, in this scenario we are linking variables together.

He explains how to concatenate in this video in a very subtle manner, shows you syntax on how its used, so by only looking up the definition in my native language I now know what this is and how it works, If I want more in-depth knowledge on the topic I will look up "PHP Concatenation" and find the documentation and read about it, otherwise I now know enough to continue on without being confused.

By the way I'm by no means an expert, I have less than a month worth of programming experience, my mindset is just programmed to think of everything logically and by using common sense, makes programming easier for me to understand I guess. Also if you can relate something in programming to something else that makes more sense to you, you will have a much better time retaining what you are learning.

Best mentality to have in this field is "Use it, or Lose it" if you are just following along with these videos and copying/pasting code without doing anything yourself, you will in fact just be wasting your time. why do you think you had to print words over and over and over and over until you hated it in school. "Because if you are using it everyday, chances are you will remember it indefinitely".

But why didn't the presenter simply do his job and properly explain concatenation ???

That's what we pay for.

I took JavaScript first, or I would be very frustrated right now. Yes things are skipped over in the videos. Not just these videos: jQuery, node.js basics also. I think they must update them or edit them and figure we'll just hack it together or something.