handbook/references/internal-api/wp-cli-get-php-binary.md
Pascal Birchler 264cb131bf
Fix handbook information architecture
- Organize files in folders according to the desired structure
- Use directory iterator to loop through all files and folders (makes generation more robust)
2025-06-25 15:38:39 +02:00

1.4 KiB

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.

Note: moved to Utils, left for BC.

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