Created
March 19, 2014 12:09
-
-
Save rileypaulsen/9640351 to your computer and use it in GitHub Desktop.
Lorem Ipsum Generator Function
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function random_lipsum($amount = 1, $what = 'paras') { | |
$start = rand(0,30); | |
return simplexml_load_file("http://www.lipsum.com/feed/xml?amount=$amount&what=$what&start=$start")->lipsum; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment