(PHP 4 >= 4.0.0)
The swf_textwidth() function gives the width of the string, str, in pixels, using the current font and font size.