PHP Variables Tutorial – Learn PHP Programming

********************New Video*********************
Responsive Navbar with Bootstrap 4
PHP variables naming convention and rules, referencing PHP variables. Variable scope, local and global, PHP variable types. Using functions and ternary expressions as variable values. PHP Variable variable, using the variable value as a new variable name. Deleting variables and checking if the variables exist with constructs.


( New Video! ) How to Create Transparent Drop Down Navigation Menu with CSS and HTML


( Website ) – PHP, JavaScript, WordPress, CSS, and HTML tutorials in video and text format with cool looking graphics and diagrams.

( YouTube Channel )

( Google Plus ) – clever techie video tutorials.

( Facebook )

( Twitter )



zdrljp says:

Thanks, keep up the good work. Subscribed

Andre Morency says:

I like your video, keep it up!

Abhinav Singh says:

please tell me the editor that u using ☺

Rowena Belinskaya says:

I couldn’t get the program to recognize $Mars as a variable. I could get it to work if I used $planets[2] for output and just directly changing the value by $planets[2] = ‘Roman god of war’; But otherwise it threw errors about array to string conversion and unknown variable. Anyone got any insight on this?

Isaac Misheal says:

hello please Clever Techie what software do you use for your php programs. like me i use visual studio code please love your own software can give me?

Nur Naafizah Mohammad Rapi says:

< ?php $username = "root"; $password = "test123"; $hostname = "localhost"; $dbhandle = mysql_connect($hostname, $username, $password) or die ("Could not connect to database"); $selected = mysql_select_db("login", $dbhandle); if (isset($_POST['user']) && isset ($_POST['pass'])) { $user = $_POST['user']; $pass = $_POST['pass']; $query = mysql_query("SELECT * FROM users WHERE Username ='$user'"); if(mysql_num_rows($query) > 0) {
echo ‘Username already exists!’;
mysql_query(“INSERT INTO users (Username, Password) VALUES (‘$user’, ‘$pass’)”);
header (“Location: index.php”)





Alex says:

Thank you very much for your tutorials!
1) I see how it works with the “Variable variables” 03:33 , but i don’t understand, where it is usefull to use theme in my scripts…?!
2) Is it a problem to unset an numeric array, because the index [3] is missing in the array?

praveen sharma says:

v good

Muhammad Yusup says:

what text editor do you use?

Tricks Funda Pk says:

Nice video, keep it up dear..
Also watch full PHP developer course here!!!

PHP & MSQLi Complete Course In Urdu/Hindi:

Cody Boelens says:


Asher Silver says:


Robyn Bieber says:

OMG I love your diagrams. This help so much. Thank you.

Nur Naafizah Mohammad Rapi says:

hye , would you mind to help me , to fix my coding.

Asher Silver says:

i saw that. i hope theyre family 😛

Write a comment


Human Verification: In order to verify that you are a human and not a spam bot, please enter the answer into the following box below based on the instructions contained in the graphic.

Do you like our videos?
Do you want to see more like that?

Please click below to support us on Facebook!

Send this to a friend

▷ Other ReviewsVehicles▷ Show Cars▷ Motorbikes▷ Scooters▷ Bicycles▷ Rims & Tires▷ Luxury BoatsFashion▷ Sunglasses▷ Luxury Watches▷ Luxury Purses▷ Jeans Wear▷ High Heels▷ Kinis Swimwear▷ Perfumes▷ Jewellery▷ Cosmetics▷ Shaving Helpers▷ Fashion HatsFooding▷ Chef Club▷ Fooding Helpers▷ Coktails & LiquorsSports▷ Sport Shoes▷ Fitness & Detox▷ Golf Gear▷ Racquets▷ Hiking & Trek Gear▷ Diving Equipment▷ Ski Gear▷ Snowboards▷ Surf Boards▷ Rollers & SkatesEntertainment▷ DIY Guides▷ Zik Instruments▷ Published Books▷ Music Albums▷ Cine Movies▷ Trading Helpers▷ Make Money▷ Fishing Equipment▷ Paintball Supplies▷ Trading Card Games▷ Telescopes▷ Knives▷ VapesHigh Tech▷ Flat Screens▷ Tech Devices▷ Camera Lenses▷ Audio HiFi▷ Printers▷ USB Devices▷ PC Hardware▷ Network Gear▷ Cloud Servers▷ Software Helpers▷ Programmer Helpers▷ Mobile Apps▷ Hearing AidsHome▷ Home Furniture▷ Home Appliances▷ Tools Workshop▷ Beddings▷ Floor Layings▷ Barbecues▷ Aquarium Gear▷ Safe Boxes▷ Office Supplies▷ Security Locks▷ Cleaning ProductsKids▷ Baby Strollers▷ Child Car Seats▷ Remote ControlledTravel▷ Luggages & Bags▷ Airlines Seats▷ Hotel Rooms▷ Fun Trips▷ Cruise Ships▷ Mexico Tours