how to two argument on ternary operator in php - Google Search

PHOTO EMBED

Sun May 09 2021 12:44:01 GMT+0000 (UTC)

Saved by @brainyworld #php

$foo = your_value;
$bar = ($foo == 1) ? "1" : (($foo == 2)  ? "2" : "other");
echo $bar;
content_copyCOPY

https://www.google.com/search?q