Classes/Lorem.php
public static function words($count = 3)
    {
        if ($count === 1) {
            return static::$words[array_rand(static::$words, $count)];
        } else {
            return array_intersect_key(static::$words, array_flip(array_rand(static::$words, $count)));
        }
    }
public static function words($count = 3)
    {
        if ($count === 1) {
            return static::$words[array_rand(static::$words, $count)];
        } else {
            return array_intersect_key(static::$words, array_flip(array_rand(static::$words, $count)));
        }
    }
public static function words ( $ count = 3 ) { if ( $ count === 1 ) { return static :: $ words [ array_rand ( static :: $ words , $ count ) ] ; } else { return array_intersect_key ( static :: $ words , array_flip ( array_rand ( static :: $ words , $ count ) ) ) ; } }
Return some random words.

@param integer $count How many words to return.
@return array
Return some random words .