setthreadtitle

(PECL proctitle >= 0.1.2)

setthreadtitleSet the thread title

Опис

bool setthreadtitle ( string $title )

Sets the thread title.

Параметри

title

The title to use as the thread title.

Значення, що повертаються

Повертає TRUE в успішному випадку або FALSE в разі помилки.

Приклади

Приклад #1 setthreadtitle() example

Running the example below will change the thread title (visible with ps c for example).

<?php
setthreadtitle
("myscript");
?>

Наведений вище приклад виведе щось подібне до:

$ ps c
  PID TTY      STAT   TIME COMMAND
 1178 pts/3    S      0:00 myscript

Прогляньте Також

add a note add a note

User Contributed Notes

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