Get font height in PHP

Description

The following code shows how to get font height.

Example


<?php
echo 'Font height: ' . imagefontheight(4);
?>

The code above generates the following result.

Get font height in PHP




















Home »
  PHP Tutorial »
    Image »




Color
Create
Font
Operation
Shape
Text