To be fair, these are not properly formatted Haikus but they are fun to extract and search for. This demo focuses on a current article from The New Yorker by pulling one from a JSON feed. However you can easily adapt this to any piece of text. The main PHP file, haiku.php, can be viewed here: https://github.com/donohoe/code-examples/blob/master/haiku-finder/haiku.php There