In this video, we are going to discuss about PHP syntax, comments and variables. Here is the outline:
🔽 PHP Syntax (Basic)
✅ File extension .php
✅ Statement should end with semicolon.
✅ Keywords are case insensitive
🔽 PHP Comments
✅ Single-line comments.
✅ Multi-lines comments.
🔽 PHP Variables
✅ Starts with $ sign followed by the variable name.
✅ Variables are case-sensitive.
✅ It must start with a letter or underscore.
✅ Cannot start with a number.
🔽 PHP Variables Scope
✅ Global Scope
Variable declared outside the function and can be accessed outside.
✅ Local Scope
Variable declared inside the function and can be accessed inside.
🔽 Accessing Global Variables
✅ $GLOBALS variable
✅ global keyword
___________________________________________________________________________
Facebook Group:
/ 1277730725766712
Facebook Page:
/ life-beyond-code-382539848831045
Do you want to learn more about web development?
🔔🔔 Please subscribe to this channel: 🔔🔔
/ @lifebeyondcode
If you need help or guide with your web development project, question, suggestion, or you want to share your takeaways with us for this video. Please comment down below. Really appreciated! 😉
On this page of the site you can watch the video online PHP Tutorial For Beginners | PHP Syntax, Comments and Variables with a duration of hours minute second in good quality, which was uploaded by the user LifeBeyondCode 16 May 2020, share the link with friends and acquaintances, this video has already been watched 319 times on youtube and it was liked by 6 viewers. Enjoy your viewing!