Quote Originally Posted by vineesh View Post
http://php.flashwebhost.com/vineesh/...ariables_2.php

I was facing difficulty to insert a full stop after a sentence. But I managed to make it work. My code is

Code:
<?php

$staffName = 'Ramesh';
$companyName = 'HOSTONNET';

$staffName2 = 'Suresh';

$staffName3 = 'Tom';

echo $staffName . ' is working in ' . $companyName;  echo '.'; echo ' But '; echo $staffName2; echo ' not.' ;

echo '<br>';

echo $staffName3 . ' also working in ' . $companyName . 'for the past 10 years'; echo '.';
Is there any issue with this ?
your code is working and error free. I also got a suggestion that it could be reduced too.
i have modified your code in here:
Code:
<?php


$staffName = 'Ramesh';
$companyName = 'HOSTONNET';


$staffName2 = 'Suresh';


$staffName3 = 'Tom';


echo $staffName . ' is working in ' . $companyName.'. But '.$staffName2.' is not.<br>'.$staffName3.' also working in '.$companyName .' for the past 10 years.';
you could do everything in one echo. lesser code faster work ;)