[PHP] Basic Variables

Reputation
0
Below is an example, of how and why to use variables.

PHP:
<?php
$myName = "prodigy"; // This declares my name AS prodigy
echo $myName; // This prints the variable stored for myName, easy right?
?>
 
PHP:
<?php
$myName = "prodigy"; // This declares my name AS prodigy
echo "My name is ".$myName."!"; //outputs My name is prodigy!
?>
 
Don't code but I thought I'd check this section out for a bit.
If I ever try to code I guess there will be more tutorials in this section by then eh.
Nice one for beginners though, AKA me.
 
This is about the most easiest PHP tutorial i've viewed in my days, If you want to learn some serious PHP . Just PM me.
 
Thank you for sharing this simple tutorial. I shall definitely utilize this when I will commence my web designing.
 
Php i sso difficult, even for just something like this, it seems to be more than necessary, I guess there is a reason i am not a web coder.
 
EvilThoughtz said:
This is about the most easiest PHP tutorial i've viewed in my days, If you want to learn some serious PHP . Just PM me.

Why not consider making public tutorials for the benefit of the forum?
 
.sLeepyK0z.. said:
Not much of a coder but I'll keep this in mind if I wish to go this way with coding. Nice tut bro

Err, programming*

You do not codegram, you program! :unsure:


@OP
Yeah, most PHP is basic and simple like this. Hopefully a new member will find it useful.
 

PHP has it's easy things as well as harder things just as every language does.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…