Public Member Functions | |
__construct () | |
__get ($var) | |
words ($num=3) | |
sentence ($word_count=4) | |
sentences ($sentence_count=3) | |
paragraph ($sentence_count=3) | |
paragraphs ($paragraph_count=3) | |
![]() | |
__tostring () | |
numerify ($string) | |
lexify ($string) | |
bothify ($string) |
Additional Inherited Members | |
![]() | |
static | $_instances = array() |
![]() | |
random (&$array) | |
rand_num () | |
rand_letter () |
Lorem::__construct | ( | ) |
Lorem::paragraph | ( | $sentence_count = 3 | ) |
Generate a single paragraph
string | $sentence_count | around how many sentences the paragraph should contain |
Definition at line 82 of file lorem.php.
References sentences().
Lorem::paragraphs | ( | $paragraph_count = 3 | ) |
Lorem::sentence | ( | $word_count = 4 | ) |
Generate a random sentence
string | $word_count | around how many words the sentence should contain |
Definition at line 52 of file lorem.php.
References words().
Lorem::sentences | ( | $sentence_count = 3 | ) |
Generate an array of sentences
string | $sentence_count | around how many sentences to generate |
Definition at line 66 of file lorem.php.
Referenced by paragraph().
Lorem::words | ( | $num = 3 | ) |
Generate an array of random words
string | $num | how many words to return |
Definition at line 38 of file lorem.php.
Referenced by sentence().