Answers for "best way to write if condition multiple line php"

PHP
5

write if and else in one line php

$result = ($data->status == 1) ? 'active' : 'disable'
Posted by: Guest on November-08-2020

Code answers related to "best way to write if condition multiple line php"

Browse Popular Code Answers by Language