PHP_SAPI === 'cli') { echo "Hello, CLI user."; } ]]> php_sapi_name() === 'cli') { echo "Hello, CLI user."; } ]]>