App::isSlave

Usage

bool App::isSlave

Description


Return Value

Only applicable if using horizontal scaling, and is whether or not this system is a slave within the cluster.

Examples

Check if Slave


if ($app->isSlave()) { echo "Yes, is slave system.\n"; }

See Also