WP_CLI::get_php_binary()public staticWP-CLI 1.0

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

Environment values permit specific binaries to be indicated.

Note: moved to Utils, left for BC.

Method of the class: WP_CLI{}

No Hooks.

Return

String.

Usage

$result = WP_CLI::get_php_binary();

WP_CLI::get_php_binary() code WP-CLI 2.8.0-alpha

public static function get_php_binary() {
	return Utils\get_php_binary();
}