Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

ternary operator in php

<?php
  $x=4;
  $y=3;
  if(x>y)?echo"X is large": echo "y is large";

 ?>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #ternary #operator #php
ADD COMMENT
Topic
Name
4+8 =