Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

write if and else in one line php

$result = ($data->status == 1) ? 'active' : 'disable'
 
PREVIOUS NEXT
Tagged: #write #line #php
ADD COMMENT
Topic
Name
8+8 =