Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

turnery expression php

(condition) ? /* value to return if condition is true */ 
            : /* value to return if condition is false */ ;
echo empty($address['street2']) ? "Street2 is empty!" : $address['street2'];
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #turnery #expression #php
ADD COMMENT
Topic
Name
2+1 =