Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

elvis operator php

This operand evaluates to left side if left side is truthy and to the right side otherwise. It works as if :
$expression1 ? $expression1 : $expression2
 
PREVIOUS NEXT
Tagged: #elvis #operator #php
ADD COMMENT
Topic
Name
6+6 =