Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php ternary operator good example

<?php

$is_user_logged_in = false;

$title = $is_user_logged_in ? 'Logout' : 'Login';Code language: HTML, XML (xml)
Source by www.phptutorial.net #
 
PREVIOUS NEXT
Tagged: #php #ternary #operator #good
ADD COMMENT
Topic
Name
5+1 =