Variables, Type casting ,Concatination and Constants in PhP

1. Variables:

$ sign is used for defining the variables in PHP. eg$var_1 =12. Here the datatype is automatically assigned. You don’t have to specify the datatype of a declared variable.

echo is used to output the results.

2. Changing a variable’s data type:

3. Concatenation :

4. Constants:

In PhP you can define constants. The value of the constant remains unchanged throughout the execution of the program. You can define a constant using the define () function as shown below. It is common to use capital letters for defining the constants. Also avoid using the php reserved keywords such as boolean, echo etc,,,


This tutorial will teach you how to connect MySQL database and JSP on eclipse. I really had a hard time connecting JSP…

Read more

Ruby on rails is an excellent framework for developing web apps using ruby. And to be clear, ruby on rails is not a…

Read more
Add Sudo User and Permissions in Linux

Sudo user in Linux will have permissions similar to a root user. With full sudo privileges, a user will be able to…

Read more

Internet is huge! Help us find great content


The Best Tutorials & Tips to Speedup Your DevOps Workflow.

Created by Bibin Wilson.