Skip to main content

Posts

Showing posts with the label output methods in php

Different Types of Output Methods in PHP

The strength of the web has been the ability for practically anyone to provide information (accurate or not) to anyone who is interested in viewing the web pages that contain that information.  With HTML, the static nature of the information being displayed limits the amount of true customization that can be provided; however, PHP provides truly dynamic content by creating custom content each time the web page is displayed.  To accomplish this display of information, PHP has four functions that make this happen:     •  print() -                     This statement is designed to provide user feedback; in other words, this function "prints" content to the HTML code which in turn will be displayed on the web page when called.  The print() function can display both raw strings and variables.  <?php      print('<p>This is the standard use of the print function.</p>');      print '<p>However, the parentheses are not necessary.</p&