Online Programming Tutorials | Web Tutorials | PHP Tutorials

The Tutorialsnation is a popular website that provides well-written tutorials for web and desktop programming languages. Our tutorials are interactive and self-explaining, and they teach by examples and sample codes. The Tutorialsnation is an excellent place to transfer knowledge and become a good learning process for the budding students of information technologies who want to learn the languages like HTML, Bootstrap, Javascript, PHP, Python, etc.

Tutorialsnation provides tutorials on various web technologies like HTML, Bootstrap, Javascript, PHP, Python, etc. Our tutorials are in many forms and range from simple definitions to explain how to make a complete source code of a programming task. Our teachers who have years of experience in programming, development, and teaching have fundamental motives to spread the knowledge and make students great future developers who can create innovative software and products to make the world a better place to live.

PHP Break statement

The PHP break statement is used to end a loop prematurely by inserting the break keyword inside a conditional statement. As the interpreter finds the break, it terminates the loop, and execution is passed to code next to the current loop. The break statement works for all the PHP loops, i.e., Do..while, while, for loop, foreach loop, etc. Read More

PHP Continue Statement

When we want to skip to the next iteration of the loop that is currently being executed, we use the continue statement. Thus, whenever the control reaches the continue statement, the loop being executed skips the current iteration, and the control goes to the following iteration. Read More

PHP Cookie

The Cookie is a set of information saved by the website script on the user's computer. Cookie data is automatically sent to the server with the request's header whenever a user visits a page. The server sends data to the browser, and the browser saves them into a temporary file on the computer's hard disk. The data even persists when the user's computer is switched off. A cookie is ideal for storing small amounts of data on a user's computer. It is not for storing a large amount of user data or keeping sensitive information. Read More

PHP Sessions

The session is another way of storing the user's temporary data on the server. Unlike cookies, the session stores data on the server with a short session ID string with the data. The server sends a cookie with the string ID to the browser in response to a request. When the browser requests a page from the website, the cookie with string ID goes back to the server, and then your PHP script can access the session data. As a developer, you specifically store the user's information on the database server to use them later in your application, but sometimes you need temporary data fields to send across the website's pages, and one way of saving temporary data is the cookie discussed in an earlier tutorial. Read More

PHP Null Coalescing Operator

A Null coalescing operator is used when you are unsure whether you have set the value of an element or not. So, in this case, it will print a value not set instead of giving an error that $m is not defined if we used the ternary operator. Read More

PHP Ternary operator

Ternary operator conditional operators are used for executing code if a given statement is true or false. Ternary conditional operators are used to reduce space used by if-else statements. Read More

PHP Comparison Operators

PHP Comparison operators are used to compare the values of two elements and return a boolean result. Comparison operators supported by PHP are ==,!=,<,>,<=,>=. Read More

PHP Logical Operators

Logical operators operate on conditional statements(these are based on conditions) or expressions. Logical operators supported by PHP are And, Or, Xor,&&,||,!. Read More

PHP Assignment Operators

PHP Assignment operators in PHP are used to create and initialize a variable. The most basic assignment operator is the (=) sign, which you can use to assign and update the value of variables. The lefthand side of a variable is always variable, and the right hand can be literal, complex expression, simple variable or function. Assignment operators supported by PHP are Assign(=),Add then assign(+=),Subtract then assign(-=),Multiply then assign(*),divide then assign(/=). Read More

PHP Arithmetic Operators

The arithmetic operators are operators we see commonly in everyday use. Apart from arithmetic negation and arithmetic assertion operators, most Arithmetic operators are binary. PHP provides plenty of mathematical functions for basic calculations and conversions, calculating logarithms, square roots, geometric values, etc. Read More

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies Find out more here