src/AmazonPaymentBundle/lib/amazon/OffAmazonPaymentsNotifications/Samples/WebServerExample.php
protected function printResponseToWebpage($stepName, $arg=array())
    {
        ob_start();
        call_user_func_array($stepName, $arg);
        $result = ob_get_contents();
        ob_clean();
        $result = preg_replace("/(\\n)/", HTML_LB, $result);
        $result = preg_replace("/(\\s)/", "&nbsp;", $result);
        print $result;
    }
protected function printResponseToWebpage($stepName, $arg=array())
    {
        ob_start();
        call_user_func_array($stepName, $arg);
        $result = ob_get_contents();
        ob_clean();
        $result = preg_replace("/(\\n)/", HTML_LB, $result);
        $result = preg_replace("/(\\s)/", "&nbsp;", $result);
        print $result;
    }
protected function printResponseToWebpage ( $ stepName , $ arg = array ( ) ) { ob_start ( ) ; call_user_func_array ( $ stepName , $ arg ) ; $ result = ob_get_contents ( ) ; ob_clean ( ) ; $ result = preg_replace ( "/(\\n)/" , HTML_LB , $ result ) ; $ result = preg_replace ( "/(\\s)/" , "&nbsp;" , $ result ) ; print $ result ; }
Invoke the passed in function and print the results out in
html format to the output buffer

@param string $stepName Name of the function to call
@param array  $arg      Function arguments

@return void
Invoke the passed in function and print the results out in html format to the output buffer