WP-CLI

A command line interface for WordPress

Docs » Internal API » System

WP_CLI::get_php_binary()

Get the path to the PHP binary used when executing WP-CLI.


Usage

WP_CLI::get_php_binary()
@return (string)

Notes

Environment values permit specific binaries to be indicated.

Internal API documentation is generated from the WP-CLI codebase on every release. To suggest improvements, please submit a pull request.