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 ?

Try this

Code:
<?php

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

$staffName2 = 'Suresh';

$staffName3 = 'Tom';

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

echo '<br>';

echo $staffName3 . ' also working in ' . $companyName . ' for the past 10 years.';
You can also replace

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

echo '<br>';

echo $staffName3 . ' also working in ' . $companyName . ' for the past 10 years.';
With

Code:
echo '<p>' . $staffName . ' is working in ' . $companyName .  '.' .  ' But ' .  $staffName2 . ' not.</p>' ;

echo '<p>' . $staffName3 . ' also working in ' . $companyName . ' for the past 10 years.</p>';