php tutorials
PHP Switch Statement
The PHP language, as we have seen in our past PHP tutorials, is very versatile and already has thought of issues you are now trying to find answers for. One example of a great example of this would be the Switch Statement in PHP. The PHP code reviews every possibility you have, and if one [...]
Introducing ElseIf to your PHP
I’ve always been very indecisive when it comes to just about everything, so the option for an ‘elseif” in PHP runs right up my alley. Following our previous discussion on PHP IF Statements, the elseif introduces more options for your script to run with.
if ($a < $b) {
echo “$a is smaller than $b”;
}
elseif ($a == [...]
The IF Statement
I love talking to my programmers or other developers, and sounding hip and chic throwing around the following “Just use an IF statement and it shoud work”. The PHP “if” statement is actually just like it sounds, IF something happens THEN this will happen. If not (ELSE), THEN this will happen as a result. Let’s [...]
The PHP Concatenation Party!
PHP likes to use weird names when describing something, so don’t let this throw you when you first start working with this language. Let’s look at the Concatenation Operator, which allows for us to put together two strings as one string in PHP. Review the following code,
$one=”Zach is Awesome!”;
$two=”You are not as awesome as Zach!”;
echo [...]
PHP Variable Introduction
When working with PHP Variables, you will see they are the best tool you can use in PHP. However, it is best to understand the small rules surrounding variables, and what you shouldn’t use when naming them.
A variable name must start with a letter or an underscore “_”
A variable name can only contain alpha-numeric characters [...]

