imagefontwidth

PHP 4, PHP 5, PHP 7, PHP 8
imagefontwidth - Get font width
Manual
Code Examples

Example #1 Using imagefontwidth on built-in fonts

Result: Font width: 8
PHP Version:

Example #2 Using imagefontwidth together with imageloadfont

Result: Font width: 23
PHP Version:


Function imagefontwidth:

Image Processing and GD Functions

Most used PHP functions