Skip to content

Commit acbf500

Browse files
add echoln function to lib/yaml/sfYaml.class.php
1 parent 03317bc commit acbf500

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lib/yaml/sfYaml.class.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,3 +165,13 @@ protected static function arrayConvertEncoding(array $result, $encoding)
165165
return $convertedResult;
166166
}
167167
}
168+
169+
/**
170+
* Wraps echo to automatically provide a newline.
171+
*
172+
* @param string $string The string to echo with new line
173+
*/
174+
function echoln($string)
175+
{
176+
echo $string."\n";
177+
}

0 commit comments

Comments
 (0)