public function printRecursiveNonAlphaNum($content = null)
    {
        if (is_array($content) || is_object($content)) {

            ob_start();

            /** @noinspection PhpUndefinedFunctionInspection */
            if (php_sapi_name() != 'cli' && !defined('STDIN')) {
                d($content);
            } else {
                var_dump($content);
            }

            $content = ob_get_contents();
            ob_end_clean();
        }

        return $content;
    }
public function printRecursiveNonAlphaNum($content = null)
    {
        if (is_array($content) || is_object($content)) {

            ob_start();

            /** @noinspection PhpUndefinedFunctionInspection */
            if (php_sapi_name() != 'cli' && !defined('STDIN')) {
                d($content);
            } else {
                var_dump($content);
            }

            $content = ob_get_contents();
            ob_end_clean();
        }

        return $content;
    }
public function printRecursiveNonAlphaNum ( $ content = null ) { if ( is_array ( $ content ) || is_object ( $ content ) ) { ob_start ( ) ; /** @noinspection PhpUndefinedFunctionInspection */ if ( php_sapi_name ( ) != 'cli' && ! defined ( 'STDIN' ) ) { d ( $ content ) ; } else { var_dump ( $ content ) ; } $ content = ob_get_contents ( ) ; ob_end_clean ( ) ; } return $ content ; }
Does a print_r with objects and array recursive

@param $content

@return string
Does a print_r with objects and array recursive