Skip to content

rezen/becho

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

becho

Latest Stable Version

Don't use echo ... use becho!

Install

composer install rezen/becho

Example

In your app, wherever you init and configure things, add a wrapper

<?php

// Basic example
becho("Some yellow text", ['color' => BECHO_YELLOW]);


// Or if you are not using a templating engine, you can echo safely
?>
<input type="text" value="<?php becho($value, BECHO_ESC_ATTR); ?>" />