Created
February 21, 2020 10:41
-
-
Save burgiuk/dee6b75920d3e8ed490ebce7699773dc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function foo(){ | |
// Stuff | |
$output = array( | |
'size'=>12-$size, | |
'colour'=>$colour, | |
'hostname' => $hostname | |
) | |
return $output; | |
} | |
$output = foo(); | |
?> | |
<div class="col-<?= $output['size']; ?>"></div> | |
<div class="col-<?= $output['size']; ?> bg-<?= $output['colour']; ?> text-white alert-<?= $output['colour']; ?>> | |
<h4 class="alert-heading"><?= $output['hostname']; ?></h4> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment