Creates a math table using PHP and HTML
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>PHP Modulus example</title> | |
<style>p {font-size: 12px;}.alert {color: red;}</style> | |
</head> | |
<body> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Calc { | |
public $num1; | |
public $num2; | |
public $cal; | |
public function __construct($num1Inserted, $num2Inserted, $calInserted) { | |
$this->num1 = $num1Inserted; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
include 'users.inc.php'; | |
?> | |
<!doctype html> | |
<html> | |
<head> |
It will receive a card parameter and increment or decrement the global count variable. the function will then return a string with the current count and the string "Bet" if the count is positive, or "Hold" if the count is zero or negative. The current count and the player's decision