Teach them basic logic.
if 1 is equal to 1 then do something.
In PHP, C, C++ that statement would look like this:
Code:
if (1 == 1) {
// Do something
}
In this case, the do something part of the code would be ran, seeing as 1 is 1, and as such 1 is equal to 1, as such the `do something` part of our code is executed.
Just introduce them to concepts one at a time. Tell them why we use == (is equal) for comparing values and not just = (set equal to) by it's self. Then tell them about != (not equal) Then on your next post take it to the next level, and tell them how to use the && (and) modifer in if statements, and then || (or) and so on.
Also, keep your information current with best practices, I'm freaking tired of running across PHP websites about OOP that are very high in Google rank yet offer very little on the content side of things and why these things are this way. PHP and OOP have very little support, and that is really quite sad seeing as the ammout of power it gives to the programmer. Also, no one seems to have a clue that name spaces can be emulated in PHP in a very simple way.
Bottom line : Keep your **** current, baby steps are best, only introduce one concept at a time and K.I.S.S (Keep It Simple, Stupid!).
Bookmarks