Fri Sep 05, 2008 10:20 pm
<?
echo "<b>My name is tom</b>";
?>
<?
$mystring="My name is tom";
echo "<b> $mystring </b>";
?>
<?php
// This won't work because of the quotes around myh5!
echo "<h5 class="myh5">I am 22 years old !</h5>";
// Now work because we escaped the quotes!
echo "<h5 class=\"myh5\">I am 22 years old !</h5>";
// work , because we used an apostrophe '
echo "<h5 class='myh5'>I am 22 years old</h5>";
?>
<?php
$mystring ="<br/>Hi . my name is : ";
echo $mystring." tom";
echo $mystring." john";
?>
Hi . my name is : tom
Hi . my name is : john
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.