Skip to main content

PHP
PHP
6 followers
1 question
0 posts

Do you have questions about PHP?

Log in to ask questions about PHP publicly or anonymously.

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

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)