The 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…)
Tag: PHP
-
Conditional Operators – Learning PHP for absolute beginners
-
PHP operators and expressions – Learning PHP for absolute beginners
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
PHP 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

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
Welcome 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…)
-
How to setup a local server using WAMP
New to websites, CMS, PHP and all that stuff? Don’t want to pay for a server and domain name till you learn what that all stuff really means?
Or maybe you want to test WordPress or some other CMS on your PC, before uploading it to a production server? There is one way to “fix” all that – setup a local server directly on your PC. (more…) -
How to Create an HTML/PHP Contact Form β Processing Form Data with PHP
In the previous tutorial – creating HTML PHP contact form – we successfully created a basic layout for the contact form. By the way, I’ve also added 2 screencasts to the post for those of you guys who really prefer video content to textual. So, if you wish to watch instead of read, you can do it. In other words you can choose now which way to go. Alternatively, you can both watch and read (or the other way around) just for better understanding. By the way, I’d really appreciate if you subscribe to our YouTube channel and like our videos. π Now let’s make our contact form actually do something. First off, it’s a good idea to understand how it works.
Under the hood
So, what happens after a user hits the “Submit” button of our contact form?
1)Let’s go step-by-step. The user fills in the form and hits the button: (more…)

