Switch to full style
:read: Start PHP with us. Includes topics to help you in php
Post a reply

Function printing text on a Web Page

Tue Oct 28, 2008 1:37 pm

Code:
<HTML>
  <HEAD>
  <TITLE> Printing text on a Web Page </TITLE>
  </HEAD>
  <BODY>
  <?php
  
function textonweb ($content, $fontsize) {
     echo
"<FONT SIZE=$fontsize>$content</FONT>";
  }
  
textonweb ("A <BR>", 7);
  
textonweb ("AA. <BR>", 3);
  
textonweb ("AAA. <BR>", 3);
  
textonweb ("AAAA! <BR>", 3);
  
?>
  </BODY>
</HTML>




Post a reply
  Related Posts  to : Function printing text on a Web Page
 avoid showing/printing figures, text after conclusion     -  
 change the direction of text in your page     -  
 Add double quotes to text dynamically, on page load     -  
 Printing PDFs in Java     -  
 Printing today+ current date with different format     -  
 Image Scroller-scrollbar-LINE_UP,LINE_DOWN-PAGE-UP-PAGE-DOWN     -  
 Able to Copy Text from Uneditable Text Boxes(JTextfields)     -  
 Java- Copy text area into disabled text area     -  
 php function     -  
 Function return more than one value     -  

Topic Tags

PHP Functions