SimpleString.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>use of string in php</title> </head> <body> <h3>use of string in php example</h3> <?php echo "I am a simple string.<br>"; echo 'I am a simple string too.<br>'; /* |------------------------------------------------- | it doesnot matter whether you use single or double | quote to express string |------------------------------------------------- */ $string = 'I am a simple string hold by a variable'; echo $string; echo "<br>"; ?> </body> </html>
No comments:
Post a Comment
leave your comments here..