Tag: learning PHP for absolute beginners

  • Conditional Operators – Learning PHP for absolute beginners

    Road signsThe power of any programming language is all about making decisions based on user selection. Conditional operators (conditional statements) execute code only when certain condition is met. If the expressions inside the parentheses () evaluate to true, the code between braces {} is executed. If it is false, then the code between braces is skipped. It’s worth mentioning that the code which follows the closing brace } is executed in any case, ‘coz it’s not part of the conditional statement. Since the same principle is used throughout all programming languages, you can learn it in the PHP context and the apply the same skils, say, in JavaScript. Ain’t it cool? (more…)

  • PHP operators and expressions – Learning PHP for absolute beginners

    Gears - image by Alvaro Heinzen

    This time around we’ll tackle one more rather interesting and really crucial notion in PHP and for that matter in any other programming language. PHP operators allow you to perform different operations with numeric variables. It is necessary to specify two operands and the appropriate symbol of mathematical operation. For example, the operation of addition (+) can be performed as follows: $x + $y. An operator is a symbol that manipulates 2 or more values.We can group PHP operators into ten types: arithmatic operators, assignment operators, comparison operations, incrementing/decrementing operators, and logical operators. Do you feel like making new friends today? πŸ™‚ Let’s meet the first group.
    (more…)

  • Learning PHP for absolute beginners – data types

    PHPPHP can work with 8 different types of data, which can be separated into 3 categories: scalar data types, compound data types and special data types.

    Not that scary as it might sound. You already know half of that stuff. Of course if you attended math classes at school πŸ™‚ … I did not πŸ˜‰
    (more…)

  • PHP variable – Learning PHP for absolute beginners

    PHP
    In this tutorial we’ll cover the bread and butter of any programming language, including our beloved PHP – the variable. So what is it? Think of it as a container which holds some specific value.
    (more…)

  • Learning PHP for absolute beginners – Your first PHP script

    PHPWelcome back, my young padavan πŸ˜‰ Our series of tutorials Learning PHP for absolute beginners continues on, and in this one we’ll meet the PHP script (or code) for the first time. Don’t worry. I’ll make sure that it’s as pleasant as possible in these circumstances.
    (more…)

  • Learning PHP for absolute beginners – Introduction

    Before we start learning PHP we should at least get a basic idea of what that is. So here it is:

    PHP is a server-side scripting language originally created for building interactive and dynamic websites. The syntax of PHP is quite similar to C and Pascal.

    Not much, heh? Well, I’m not a history teacher, so we’ll skip that stuff. You can read it yourself when you have a good catch on PHP. (more…)