3 | Learn About PHP Syntax for Beginners | 2023 | Learn PHP Full Course for Beginners

preview_player
Показать описание
In this video I will teach beginners about PHP Syntax, and how we write PHP code to avoid syntax errors. 🙂

Documentation:

➤ GET ACCESS TO MY LESSON MATERIAL HERE!

First of all, thank you for all the support you have given me!

I am really glad to have such an awesome community on my channel. It motivates me to continue creating and uploading content! So thank you!

I am now using Patreon and YouTube Memberships to share improved and updated lesson material, and for a small fee you can access all the material either from my memberships or Patreon, depending on your preference. I have worked hard, and done my best to help you understand what I teach.

I hope you will find it helpful :)

Рекомендации по теме
Комментарии
Автор

Oh boy, if only you could see how I've echoed out a TON of HTML within a php string... Time to go and refactor! 😂 Dani saves the day once again.

BenjaminEmm
Автор

Very useful information I had previously missed, not using closing tags on php only files and how to embed php within html a better way, very useful and helpful, thanks!

photoinshot
Автор

Me and my OCD trying to clean my monitor after seeing a white dot near the upper-left side of your narrator inset. 🤣 Great instruction btw!

navymiguelito
Автор

You're the best teacher on the world. Love you man.

IEmirovic
Автор

Note this block of code:
<?php
if(condition){
//some php code here
?>
//some html code here
<?php};?>


This code will generate an error unless you have a space before the closing bracket and semi-colon (e.g. <?php };?>).
I had to learn this the hard way after a long process debugging this problem on a file with long lines of code.

stephenokoduwa
Автор

echo "Dani Krossing is a genius";

chikeziechinonso
Автор

Hi and thanks for the videos!
I was wondering if we have some code formatter like Prettier, or some good Vscode extension for PHP to automatically make those indentations and spaces in code?

olga_lc
Автор

your approach is excellent every body just say that

araghi
Автор

hello i am just a kid learning web development . and recently my father asked me to create a small website for him . (a matriomony website). i was super stuck on the php part . i couldnt notice any errors in it . turns out its because i added the closing tag too . this was a big help

VortexOfKnoledge
Автор

I followed your first 65 lessons on php. I still like the relaxed way, taking time! to explain everything. Big Thank you.

GerritforBazeja
Автор

Would really love u to do a step by step react js course

chikeziechinonso
Автор

thank u sir " Dani " lOve u ☺

oujqvgq
Автор

Will you be doing a real world project in PHP this time? Hopefully a full CMS with Login Pleese.

phemelomogatusi
Автор

Prof. Dani Krossing, please MySQL server isn't running on my XAMPP Control Panel. saying "Error: MySQL shutdown unexpectedly. This may be due to a blocked port, missing dependencies, improper privileges, a crash, or a shutdown by another method. Press the Logs button to view error logs and check the Windows Event Viewer for more clues. If you need more help, copy and post this entire log window on the forums".
WHAT SHOULD I DO?

sodiyaraymond
Автор

Hi! I have programmed in java and python (no server/client things). Do I need to learn HTML before php?

amandasjoberg
Автор

You can recognize someone who never wrote c# or php by the lack of semicolons 🤣
This is what made me love Laravel, just using 2 open and close curlies instead of the php tags is soo much nicer.

Stoney_Eagle
Автор

Teacher dani we need react course and python special django frame work and tailwind css

somalifreelancer
Автор

So gland toi see ; and {} like in thé c language

xavierrousseau
Автор

Great series I enjoyed it.
But can't believe Elon Musk has a programming YouTube channel.

alaaabdou
Автор

Given that PHP is in the webpage (just like HTML) it looks like it will be executed in the browser. But it is server-side, does this mean that the PHP is executed in the server before the page is served? If so, is it executed just once or every time the page is served? When executing php, what is produced: HTML/javascript/typescript that will be executed in the browser or something else? It's good to get these concepts right from the beginning. Can you provide a realistic example of when we might want to use PHP?

connorsilvertree