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 www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #ternary #operator #php
ADD COMMENT
Topic
Name
9+4 =