PHP 7.0.0 RC 8 Released


(PHP 5 <= 5.3.0, PECL ming SVN)

SWFText::__constructCreates a new SWFText object


SWFText::__construct ( void )

This function is EXPERIMENTAL. The behaviour of this function, its name, and surrounding documentation may change without notice in a future release of PHP. This function should be used at your own risk.

Creates a new SWFText object, fresh for manipulating.


This simple example will draw a big yellow "PHP generates Flash with Ming" text, on white background.

Example #1 swftext() example

= new SWFFont("Techno.fdb");
$t = new SWFText();
$t->addString("PHP generates Flash with Ming!!");

$m = new SWFMovie();


header('Content-type: application/x-shockwave-flash');

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top