If you want to store multiple values to a single variable name then you have to use Arrays. Arrays use a single variable name with multiple keys. Those keys hold the values or actually map them. Arrays are quite useful for storing and retrieving multiple values, and for storing data obtained through MySQL operations. To
All posts by caninfotech
Loops allow you to repeat certain lines of code. The code is executed repeatedly until a condition is met. This saves you time and also decreases the number of lines of code that you need to have. For Loop This loop specifies the condition and repeats the statements as long as the conditions are met.
Conditional statements are used to test conditions in PHP. You test a certain condition and then perform an action based on the condition. Like when a condition is true do this and when the condition is false, do this instead. These statements make use of the logical as well as comparison operators for forming conditions.
Operators in PHP are used for different tasks like comparing or incrementing/decreasing values. They are also used to test logical operations. There are many types of operators that you will be using in PHP. They can be grouped according to their usage. Two main types of operators are comparison and logical operators. These conditions usually
PHP is rich with inbuilt functions that can save you a lot of time and effort. There are several mathematical functions present in PHP which allows you to do a lot within a few lines. Here are the most frequently used php math or arithmetic functions: ceil(), floor() and round() These three functions are used
There are a lot of php string functions and they are very useful. These functions are used to perform operations with string values. You can change cases, search within strings, count the characters, trim them etc. Here is the list of some extremely useful php string functions along with their usage examples: strtoupper() and strtolower()
Variables store values in them. They can change as you perform operations. For example, you store a value like the number 5 in a php variable. Then you perform operations like additions, subtractions etc. The first thing that you require for a variable is a name. PHP has the following rules for variable names: Variable
PHP is a very popular web programming language used for building dynamic websites. When combined with HTML, CSS and MySQL databases it becomes a very useful language for building websites. If you want to develop websites, then PHP becomes a basic requirement. I have been using PHP, MySQL, HTML and CSS for developing websites for