From acbf5002676b41d825051ba0466c7e6f7b49d015 Mon Sep 17 00:00:00 2001 From: antony-develop <19634898+antony-develop@users.noreply.github.com> Date: Fri, 2 Mar 2018 19:24:58 +1000 Subject: [PATCH] add echoln function to lib/yaml/sfYaml.class.php --- lib/yaml/sfYaml.class.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/yaml/sfYaml.class.php b/lib/yaml/sfYaml.class.php index 80085856c..6fb124516 100644 --- a/lib/yaml/sfYaml.class.php +++ b/lib/yaml/sfYaml.class.php @@ -165,3 +165,13 @@ protected static function arrayConvertEncoding(array $result, $encoding) return $convertedResult; } } + +/** + * Wraps echo to automatically provide a newline. + * + * @param string $string The string to echo with new line + */ +function echoln($string) +{ + echo $string."\n"; +}