$arg ) { $export = false; $export |= is_bool( $arg ); $export |= is_array( $arg ); $export |= is_object( $arg ); if ( $export ) $args[ $index ] = sprintf( '%s', var_dump( $arg, true ) ); } $text = $args[ 0 ]; if ( strpos( $text, '%' ) !== false ) { // Put all of the arguments into one string. $text = @call_user_func_array( 'sprintf', $args ); if ( $text == '' ) $text = $args[ 0 ]; } else $text = implode( "
\n", $args ); // Date class: string $text = sprintf( '
%s %s%s
', date( 'H:i:s' ), $text, "\n" ); echo $text; ob_flush(); } } error_reporting( E_ALL | E_STRICT ); require_once( __DIR__ . '/../vendor/autoload.php' );