public static function text($param = array())
    {

        $defParam = array(
            'amount' => 128,
            'what' => 'bytes',
            'start' => 'yes',
            'lang' => 'en'
        );

        if (is_integer($param)) {
            $param = array('amount' => $param);
        }

        $param = array_merge($defParam, $param);

        $json = Utils::getJSON('http://json-lipsum.appspot.com/?' . http_build_query($param));

        if (isset($json->lipsum) && strpos('--', $json->lipsum)) {
            return implode(' -- ', $json->lipsum);
        } elseif (isset($json->lipsum)) {
            return $json->lipsum;
        } else {
            return 'Error Lorem ipsum dolor sit amet, consectetur adipiscing elit.';
        }

    }
public static function text($param = array())
    {

        $defParam = array(
            'amount' => 128,
            'what' => 'bytes',
            'start' => 'yes',
            'lang' => 'en'
        );

        if (is_integer($param)) {
            $param = array('amount' => $param);
        }

        $param = array_merge($defParam, $param);

        $json = Utils::getJSON('http://json-lipsum.appspot.com/?' . http_build_query($param));

        if (isset($json->lipsum) && strpos('--', $json->lipsum)) {
            return implode(' -- ', $json->lipsum);
        } elseif (isset($json->lipsum)) {
            return $json->lipsum;
        } else {
            return 'Error Lorem ipsum dolor sit amet, consectetur adipiscing elit.';
        }

    }
public static function text ( $ param = array ( ) ) { $ defParam = array ( 'amount' => 128 , 'what' => 'bytes' , 'start' => 'yes' , 'lang' => 'en' ) ; if ( is_integer ( $ param ) ) { $ param = array ( 'amount' => $ param ) ; } $ param = array_merge ( $ defParam , $ param ) ; $ json = Utils :: getJSON ( 'http://json-lipsum.appspot.com/?' . http_build_query ( $ param ) ) ; if ( isset ( $ json -> lipsum ) && strpos ( '--' , $ json -> lipsum ) ) { return implode ( ' -- ' , $ json -> lipsum ) ; } elseif ( isset ( $ json -> lipsum ) ) { return $ json -> lipsum ; } else { return 'Error Lorem ipsum dolor sit amet, consectetur adipiscing elit.' ; } }
Generate a dummy text

@param array $param
@return string
Generate a dummy text