PHP - Basics and Execution Model
Identify the error in this PHP script intended to run only on CLI:
if (php_sapi_name() = 'cli') {
echo "CLI mode";
} else {
echo "Web mode";
}