PHP-Kurzform für isset && trueyPhp

PHP-Programmierer chatten hier
Anonymous
 PHP-Kurzform für isset && truey

Post by Anonymous »

Gibt es eine kürzere Möglichkeit, Folgendes in PHP zu schreiben?
$bar = isset($foo['bar']) && $foo['bar'];
oder
$verylongname = isset($_POST['verylongname']) && $_POST['verylongname'];
Ich verwende PHP 8.4

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post