本文整理汇总了PHP中Number::preSuc方法的典型用法代码示例。如果您正苦于以下问题:PHP Number::preSuc方法的具体用法?PHP Number::preSuc怎么用?PHP Number::preSuc使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Number
的用法示例。
在下文中一共展示了Number::preSuc方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Number
</form>
</html>
<?php
include "numberClass.php";
$number = new Number();
if (isset($_GET["input1"]) and isset($_GET["input2"])) {
$number->setFirst($_GET["input1"]);
$number->setSecond($_GET["input2"]);
echo "Dato: " . $number->getFirst() . " " . "Dato: " . $number->getSecond() . "<br /><br />";
$number->somma();
$result = $number->getThird();
echo "Esercitazione 1 somma {$result}<br />";
echo "Esercitazione 2 precedente e successivo:";
$number->preSuc();
$number->media();
$result = $number->getFourth();
echo "Esercitazione 3 media {$result}<br />";
echo "Esercitazione 4 calcolatrice:";
$number->calcol();
echo "Esercitazione 5 aree:";
$number->aree();
} else {
echo "Non hai inserito nessun parametro.";
}