public/wordpress/wp-content/plugins/wp-courseware/includes/legacy/functions.php
/**
 * Simple debug function to echo a variable to the page.
 *
 * @since 1.0.0
 *
 * @param array   $showvar The variable to echo.
 * @param boolean $return If true, then return the information rather than echo it.
 *
 * @return string The HTML to render the array as debug output.
 */
Simple debug function to echo a variable to the page.

@param array   $showvar The variable to echo.
@param boolean $return If true, then return the information rather than echo it.

@return string The HTML to render the array as debug output.
Simple debug function to echo a variable to the page . @param array $showvar The variable to echo . @param boolean $return If true then return the information rather than echo it . @return string The HTML to render the array as debug output .
function WPCW_debug_showArray( $showvar, $return = false ) {
	$html = "<pre style=\"background: #FFF; margin: 10px; padding: 10px; border: 2px solid grey; clear: both; display: block;\">";
	$html .= print_r( $showvar, true );
	$html .= "</pre>";
	if ( ! $return ) {
		echo $html;
	}
	return $html;
}
function WPCW_debug_showArray ( $ showvar , $ return = false ) { $ html = " <pre style= \" background: #FFF; margin: 10px; padding: 10px; border: 2px solid grey; clear: both; display: block; \" > " ; $ html .= print_r ( $ showvar , true ) ; $ html .= " </pre> " ; if ( ! $ return ) { echo $ html ; } return $ html ; }
Simple debug function to echo a variable to the page.
Simple debug function to echo a variable to the page .