Answers for "<# #> in php"

PHP
4

php <=>

Return 0 if values on either side are equal
Return 1 if the value on the left is greater
Return -1 if the value on the right is greater
Posted by: Guest on October-11-2021
0

: in PHP

/*
This is an easy way to execute conditional html / 
javascript / css / other language code with 
php if else:

No need for curly braces {}
*/
<?php if (condition): ?>

// html / javascript / css / other language code to run if condition is true

<?php else: ?>

// html / javascript / css / other language code to run if condition is false

<?php endif ?>
Posted by: Guest on April-08-2022

Browse Popular Code Answers by Language