Function : safe_echo()

If a variable is supposed being multiform (bool, resource, array, string, int), sometime, using "echo" to display it value will display a PHP error. Safe_echo help you to display a variable value if this one is "echo-able".

Here is an example:

<?php
$var	=	array( 1 , 2 , 3 );
safe_echo( $var ); // returns null and doesn't display anything

$var  = 1;
safe_echo( $var ); // displays "1"