public static function title($param = null)
    {

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

        if (!is_array($param)) {
            $param = array();
        }

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

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

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

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

    }
public static function title($param = null)
    {

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

        if (!is_array($param)) {
            $param = array();
        }

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

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

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

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

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

@param null $param
@return string
Generate a dummy title