Skip to content

Instantly share code, notes, and snippets.

@flavius
Created September 25, 2011 09:14
Show Gist options
  • Save flavius/1240411 to your computer and use it in GitHub Desktop.
Save flavius/1240411 to your computer and use it in GitHub Desktop.
<?php
$createLink = function($var) {
$ret = '<a style="color: red" href="' . $var . '">' . 'Link' . '</a>';
return $ret;
};
$format = array();
$format['Link'] = 'createLink';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment