PHP Snippets

Article 129 in Notebook

2021-03-09 09:39:26 from
PHP Snippets
Last Review on: 2021-04-15 08:37:52 | Hits: 24

// Beispielanwendung für den ternären Operator
$action = (empty($_POST['action'])) ? 'standard' : $_POST['action'];

// Obiges ist mit dieser if/else-Anweisung identisch
if (empty($_POST['action'])) {
$action = 'standard';
} else {
$action = $_POST['action'];

I do not guarantee the reliability of the information given here, the code described on this page is executed at your own risk and in the event of damage or other unforeseeable consequences I am in no way responsible or liable.
Comment Section
Currently 0 Upvotes!
captcha image

System - 2021-03-09 09:39:37
We appreciate comments on our site!

This Website is using Session Cookies for Site Functionality and AWStats.