DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
6+3 =
Submit