l0ve2hat3 Posted October 28, 2008 Share Posted October 28, 2008 how would i go about running a loop for each line of a STRING (not a file)? Quote Link to comment Share on other sites More sharing options...
DarkWater Posted October 28, 2008 Share Posted October 28, 2008 Uhh: $string = <<<STRING This is just a tessssst! !!! STRING; foreach (explode("\n", $string) as $line) { echo strrev($line) . "\n"; } Quote Link to comment Share on other sites More sharing options...
l0ve2hat3 Posted October 28, 2008 Author Share Posted October 28, 2008 ty Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.