CodeIgniter v4.5 API

MockCommon.php

This file is part of CodeIgniter 4 framework.

(c) CodeIgniter Foundation admin@codeigniter.com

For the full copyright and license information, please view the LICENSE file that was distributed with this source code.

Table of Contents

Functions

is_cli()  : bool
Is CLI?

Functions

is_cli()

Is CLI?

is_cli([bool $newReturn = null ]) : bool

Test to see if a request was made from the command line. You can set the return value for testing.

Parameters
$newReturn : bool = null

return value to set

Return values
bool

        
On this page

Search results