The PHP superglobal variables are: $GLOBALS $_SERVER $_REQUEST $_POST $_GET $_FILES $_ENV $_COOKIE $_SESSION Uses of these variable you will learn in upcoming tutorials.
To include another file into our code include() and require() functions are used with one required parameter i.e. file name that you wanted to include. Difference in both functions is include() will not throw any error when specified file was not found, instead of error it will throw warning. But in case of require it […]
date() function is used to format date or time in PHP. Syntax date(format,timestamp) Parameter Description format Required. Specifies the format of the timestamp timestamp Optional. Specifies a timestamp. Default is the current date and time Format is required parameter and there are some characters used to create Date and time format. Below parameters are used […]
Functions are a block of code executed when they are called. We write a set of code in function definition and call that function to perform some task. by using functions code performance can be increased. and we can avoid Rewrite of code. PHP has so many in build functions and they are very helpful […]
Loops are used When we wanted to run a block of code multiple times. There are four looping statements in PHP – while – loops through a block of code as long as the specified condition is true do…while – loops through a block of code once, and then repeats the loop as long as the specified […]
Conditional statements allow you to perform some task on the basis of certain conditions PHP has the following Conditional statements. if statement – executes some code if condition is true if…else statement – executes some code if a condition is true and another code if that condition is false if…elseif…else statement – executes code when condition is true […]
Operators are used to perform operations on variables and values. In PHP there are different groups of Operators. Arithmetic operators Assignment operators Comparison operators Increment/Decrement operators Logical operators String operators Array operators Conditional assignment operators Arithmetic operators: Used to perform arithmetic operations like add, subtract, multiply etc. Operator Name Example Result + Addition $x + […]
PHP is Hypertext Preprocessor, used to create dynamic webpages wich interacts with databases. Its a very popular programming language. The very most popular database is used with PHP is MySQL. To start with PHP you must be familiar with HTML, CSS & Programming(any language) basics. If you want to quickly brush up These things then you can […]
CSS is Cascading style sheets which is used to provide styling to a HTML or a Web Document So that it becomes interactive to the users. CSS syntax is always written in Key value format separated with colon. Where key is CSS property name and value is numeric or text value of that property. After […]
<header> – Used to create header section of webpage <nav> – Used to create navigation menu <section> – USed to create webpege section <video> – Used to add video content on webpage <footer> – Used to create footer of website.