How to echo a boolean(true, false) in Php
To echo a boolean value, we can use the ternary operator (?
) in Php.
Here is the example:
$name='king';
$bool = $name ? "true":"false";
echo $bool;
Output:
true
To echo a boolean value, we can use the ternary operator (?
) in Php.
Here is the example:
$name='king';
$bool = $name ? "true":"false";
echo $bool;
Output:
true
In this demo, we are going to learn about how to rotate an image continuously using the css animations.
In this demo, i will show you how to create a instagram login page using html and css.
In this demo, i will show you how to create a pulse animation using css.
In this demo, i will show you how to create a snow fall animation using css and JavaScript.