Home  >  Article  >  Backend Development  >  php operations

php operations

巴扎黑
巴扎黑Original
2016-11-10 11:22:421138browse

// Addition and subtraction operations
$a = 100;
$b = 50;

echo $a - $b, '
';

echo $a + $b, '
';


// Modulo operation
echo 100%9, '';

// Comparison operation
$score = 60;
if ($score >= 60) {
echo 'pass';
} else {
echo 'fail
';
} else {
echo 'Strings are not equal';
}
?>

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:pdo link error under macNext article:pdo link error under mac