Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

ternary operator in php

<?php
$marks=40;
print ($marks>=40) ? "pass" : "Fail";
?>
Source by www.codementor.io #
 
PREVIOUS NEXT
Tagged: #ternary #operator #php
ADD COMMENT
Topic
Name
5+7 =