Using the fputs() Function : fputs « File Directory « PHP






Using the fputs() Function

 
<?php
     function custom_echo($string) {
          $output = "Custom Message: $string";
          fputs(STDOUT, $string);
     }

     custom_echo("This is my custom echo function!");
?>
  
  








Related examples in the same category

1.A Simple Text-File Hit Counter
2.Writing and Appending to a File
3.Storing data on a remote server