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,,,

Related

Ruby on rails is a framework for developing web applications based on ruby programming language.  Ruby is not only…

Read more

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

Read more
Git Clone Error: java.io.IOException

Issue: In Jenkins, when I am trying to clone a git repository I am getting the following…

Read more
About

The Best Tutorials & Tips to Speedup Your DevOps Workflow.

Created by Bibin Wilson.