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 guide will help in Jenkins installation using step by step instructions. It explains the different methods to…

Read more
Git Clone Error:

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

Read more

This tutorial will guide you through the steps for deploying a plain spring web application to a tomcat server. If…

Read more

The Best Tutorials & Tips to Speedup Your DevOps Workflow.

Created by Bibin Wilson.