protected function getArrayAsText($array, $intendBy=1)
    {
        $intention = '';
        for ($i=0; $i<$intendBy; $i++) {
            $intention .= '    ';
        }

        $text = var_export($array, true);

        $text = preg_replace('/[ ]{2}/', '    ', $text);
        $text = preg_replace("/\=\>[ \n    ]+array[ ]+\(/", '=> array(', $text);
        return $text = preg_replace("/\n/", "\n".$intention, $text);
    }
protected function getArrayAsText($array, $intendBy=1)
    {
        $intention = '';
        for ($i=0; $i<$intendBy; $i++) {
            $intention .= '    ';
        }

        $text = var_export($array, true);

        $text = preg_replace('/[ ]{2}/', '    ', $text);
        $text = preg_replace("/\=\>[ \n    ]+array[ ]+\(/", '=> array(', $text);
        return $text = preg_replace("/\n/", "\n".$intention, $text);
    }
protected function getArrayAsText ( $ array , $ intendBy = 1 ) { $ intention = '' ; for ( $ i = 0 ; $ i < $ intendBy ; $ i ++ ) { $ intention .= '    ' ; } $ text = var_export ( $ array , true ) ; $ text = preg_replace ( '/[ ]{2}/' , '    ' , $ text ) ; $ text = preg_replace ( "/\=\>[ \n    ]+array[ ]+\(/" , '=> array(' , $ text ) ; return $ text = preg_replace ( "/\n/" , "\n" . $ intention , $ text ) ; }
Get an array in text format.

@param array $array
@return string
Get an array in text format .