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)? Link to comment https://forums.phpfreaks.com/topic/130496-parse-string/ 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"; } Link to comment https://forums.phpfreaks.com/topic/130496-parse-string/#findComment-676969 Share on other sites More sharing options...
l0ve2hat3 Posted October 28, 2008 Author Share Posted October 28, 2008 ty Link to comment https://forums.phpfreaks.com/topic/130496-parse-string/#findComment-676972 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.