Created
May 15, 2012 06:45
-
-
Save kyleconroy/2699626 to your computer and use it in GitHub Desktop.
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 splitMessage($text){ | |
$result = array(); | |
// Implementation here | |
return $result; | |
} | |
$longMessage = "Hello there how are you"; // Make this longer | |
foreach(splitMessage($longMessage) as $msg) { | |
// Print the message | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment