Day -2 PHP Introduction and Variable, Strings concatenation

Introduction

What is PHP???

PHP: Hypertext Preprocessor (the name is a recursive acronym) is a widely used, general-purpose scripting language that was originally designed for web development to produce dynamic web pages. ...
------------------------------------------------------------------------
Now we are start PHP with Variable define....
alway start with $ sign

$variable_name = value;
$sum = 10;
-----------------------------------

String and String concatenation in PHP


:-In the concatenation we can use (.)
and any string is apply is "" or ''


$first='BhavikPHP';
echo $first;
$second='Datt';
echo "This is concat for two string:---".$second.$first;
?>


0utput

BhavikPHP
This is concat for two string:---DattBhavikPHP

0 comments:

Post a Comment

Newer Post Older Post Home