Skip to content

Instantly share code, notes, and snippets.

@burgiuk
Created February 21, 2020 10:41
Show Gist options
  • Save burgiuk/dee6b75920d3e8ed490ebce7699773dc to your computer and use it in GitHub Desktop.
Save burgiuk/dee6b75920d3e8ed490ebce7699773dc to your computer and use it in GitHub Desktop.
<?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