Skip to main content

PHP Developers
PHP Developers
4 members
1 question
0 posts

shoaiyb liked 5 months ago
Answer
PHP

You can do it by using PHP if
For example,

<?php $config = array('true' => true,'false' => false); if($config['true'] === true) { echo "It is true"; } /* else { // leave empty } */ if($config['false'] === true) { echo... (More)
shoaiyb liked 5 months ago
Answer
PHP

You can do it by putting something like

$config = array('one' => true,'two' => false);

And the output become

When

$config['one']

Returns true

And when

$config['two']

Returns false