Answers for "how to write if in one line ? : in php"

PHP
3

if online php

<?php echo ($requestVars->_name == '') ? $redText : ''; ?>
Posted by: Guest on August-08-2020
1

one lin if statement php

<?php if ($requestVars->_name == '') echo $redText; ?>
Posted by: Guest on August-17-2020

Code answers related to "how to write if in one line ? : in php"

Browse Popular Code Answers by Language