略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: HaruPage::textRect

2024-12-21

HaruPage::textRect

(PECL haru >= 0.0.1)

HaruPage::textRectPrint the text inside the specified region

说明

HaruPage::textRect ( float $left , float $top , float $right , float $bottom , string $text [, int $align = HaruPage::TALIGN_LEFT ] ) : bool

Prints the text inside the specified region.

参数

left

Left border of the text area.

top

Top border of the text area.

right

Right border of the text area.

bottom

Lower border of the text area.

text

The text to print.

align

Text alignment. Must be one of the following values:

  • HaruPage::TALIGN_LEFT
  • HaruPage::TALIGN_RIGHT
  • HaruPage::TALIGN_CENTER
  • HaruPage::TALIGN_JUSTIFY

返回值

Returns TRUE on success.

错误/异常

发生错误时抛出 HaruException 异常。

参见

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/harupage.textrect.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3