php_sapi_nameReturns the type of interface between web server and PHP
&reftitle.description;
stringphp_sapi_name
Returns a lowercase string which describes the type of interface between
web server and PHP (Server API, SAPI). In CGI PHP, this string is "cgi",
in mod_php for Apache, this string is "apache" and so
on.
&reftitle.returnvalues;
Returns the interface type, as a lowercase string.
&reftitle.examples;
php_sapi_name example
]]>
&reftitle.seealso;
PHP_SAPI