W3cubDocs

/PHP

GearmanTask::functionName

(PECL gearman >= 0.6.0)

GearmanTask::functionNameGet associated function name

Description

public GearmanTask::functionName(): false|string

Returns the name of the function this task is associated with, i.e., the function the Gearman worker calls.

Parameters

This function has no parameters.

Return Values

A function name, or false if the task has not yet been created.

© 1997–2025 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/gearmantask.functionname.php