Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Clears any empty line within the input string. Output data as merged string with empty lines stripped out.
- @param $nfoData string the input string
- */
- function clear_nfo_empty_lines($nfoData) {
- $lines = explode("\n", $nfoData);
- $mergedString = "";
- foreach($lines as $line) {
- if(strlen(trim($line)) == 0)
- continue;
- $mergedString += $line + "\n";
- }
- return $mergedString;
- }
Add Comment
Please, Sign In to add comment