<?php
$x = 'Rakib'; //variable x holds my name Rakib
$y = 'Sami'; //variable y holds my friends name Sami
echo $x.' '.$y; //printing the name of my name & my friends name
?>
Monday, December 31, 2012
String Concatenation in PHP
Variable decleration in PHP
<?php
$x = 1; //variable x holds 1
$y = 7; //variable y holds 7
$res = $x + $y; //variable res holds the addition of x and y
echo $res; //printing the result
?>
Subscribe to:
Posts (Atom)