$error = ""; date_default_timezone_set('UTC'); function greetings() { global $greetings; global $relay_greetings; $relay_greetings = $greetings[mt_rand(0, count($greetings) - 1)]; } function vulgar() { global $valgure_response; global $relay_valgure_response; $relay_valgure_response = $valgure_response[mt_rand(0, count($valgure_response) - 1)]; } vulgar(); greetings(); if (isset($_POST['submit']) == 'submit') { $str = $_POST['ui']; $f**k = substr_count($str, "f**k"); $f*****g = substr_count($str, "f*****g"); $f****d = substr_count($str, "f****d"); $shit = substr_count($str, "shit"); if ($f**k == 1 || $f*****g == 1 || $f****d == 1 || $shit == 1) { echo $relay_valgure_response; } $suggested_greetings = ["hello", "hi", "hey"]; $hi = substr_count($str, "hi"); $hi2 = substr_count($str, "Hi"); $hello = substr_count($str, "hello"); $hello2 = substr_count($str, "Hello"); $hi3 = substr_count($str, "how are you");
</body> </html> // Parameters and Arguments <html> <head> <title></title> </head> <body> <p> <?php function greetings($name) { echo "Greetings, " . $name . "!"; } greetings("PHP Programmer"); ?> </p> </body> </html> // Greetings, PHP Programmer! // Practice <html> <head> <title></title> </head> <body> <p> <?php function aboutMe($name, $age)