PHP Classes

File: demo/helloworld.php

Recommend this page to a friend!
  Classes of Thomas Björk   OBPipe   demo/helloworld.php   Download  
File: demo/helloworld.php
Role: Example script
Content type: text/plain
Description: A simple Hello, world! demo
Class: OBPipe
Manipulate PHP output with named pipe buffers
Author: By
Last change: Update of demo/helloworld.php
Date: 3 months ago
Size: 362 bytes


Class file image Download

// Create a dynamic output handler
$pipe = new OBPipe();

// Activate the pipe named alpha

// Output some text
echo "Hello";

// Activate the pipe called bravo

// Output some text
echo ", world!";

 * The expected output is:
 * "Hello, world!"