handbook/internal-api/wp-cli-utils-get-php-binary.md
github-actions[bot] ff2a543077 Regenerate handbook
2026-07-21 08:35:57 +00:00

1.6 KiB

WP_CLI\Utils\get_php_binary()

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


Usage

WP_CLI\Utils\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.