Pages

Monday, 4 June 2012

Concatination in PHP

Now we will write a php script performing concatenation by using dot(.) operator
program is as
<?php //Starting Script
$txt1="BAJAJ"; //txt1 is a variable
$txt2="123"; //txt2 is a variable
echo $txt1."  ".$txt2;
?> //Ending script
****************************
Output of above program will be :-
BAJAJ  123



No comments:

Post a Comment