PHP stands for Hypertext Preprocessor. It is a widely-used, open source scripting language used for scripts that are executed on the server and it is freeware. It is a server side scripting language used to develop attractive and dynamic web pages. It can be integrated with a number of popular databases, including MySQL, PostgreSQL, Oracle, Sybase,...

Read More

A PHP script can be placed anywhere in the document and starts with as follow:   The default file extension for PHP files is “.php”. A PHP file normally contains HTML tags, and some PHP scripting code. Below, we have an example of a simple PHP file, with a PHP script that uses a built-in PHP function “echo” to output the te...

Read More

A comment in PHP code is a line that is not read by compiler.. Its only purpose is to be read by someone who is looking at the code or we can say it is used for documentation purpose. Comments can be used to: Let others understand what you are doing Remind yourself of what you did - Most programmers have experienced coming back to their own work a ...

Read More

Variables are "containers" for storing information. Purposes of variable in PHP: A variable name must start with a leading dollar sign ($),which is followed by name. A variable name cannot start with a number. Variable names are case-sensitive ($age and $AGE are two different variables) Variables used before they are assigned have default values. P...

Read More

Integers: They are whole numbers, without a decimal point, like 4195. They are the simplest type and correspond to simple whole numbers, both positive and negative. Integers can be assigned to variables, or they can be used in expressions, Example: $varb=789;   Doubles: They like 3.14159 or 49.1. By default, doubles print with the minimum number of...

Read More

A constant is a value cannot change during the execution of the program. By default, it is case-sensitive. A constant name starts with a letter or underscore, followed by any number of letters, numbers, or underscores.  If you have defined a constant, it can never be changed or undefined.  To define a constant you have to use define() function and ...

Read More

FOLLOW US ON LinkedIn



Explore Tutu'rself