Skip to content

Commit ab1d8fa

Browse files
authored
Merge pull request #187 from antony-develop/patch-1
add echoln function to lib/yaml/sfYaml.class.php
2 parents 03317bc + acbf500 commit ab1d8fa

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)