Thema: isset in PHP
Einzelnen Beitrag anzeigen
Alt 03.03.2005, 08:12   #10
jak
Inventar
 
Registriert seit: 13.06.2001
Beiträge: 1.830


Standard

Wie dir wahrscheinlich schon aufgefallen ist, ist das Beispiel in meinem Post falsch, richtig wäre z.B.:
$b=($a=="test" ? 1 : 2);

Jak
____________________________________
Join the DNRC | Godwin\'s Law (thx@stona)
Documentation is like sex: If it\'s good, it\'s very, very good. If it\'s bad, it\'s better than nothing.
\"In theory, theory and practice are the same. In practice, they are not\" (Lawrence Berra)
jak ist offline   Mit Zitat antworten