From a935564abec805147d146ad4fc0a6553f7cfd043 Mon Sep 17 00:00:00 2001 From: Marius Orcsik Date: Fri, 1 May 2009 20:32:54 +0200 Subject: [PATCH] * added some other useful functions --- _res/_libs/functions.inc.php | 9 +++++++++ _tests/models/{fooEntityATest.php => fooentityTest.php} | 0 _tests/models/{fooTdoATest.php => footdoTest.php} | 0 3 files changed, 9 insertions(+) rename _tests/models/{fooEntityATest.php => fooentityTest.php} (100%) rename _tests/models/{fooTdoATest.php => footdoTest.php} (100%) diff --git a/_res/_libs/functions.inc.php b/_res/_libs/functions.inc.php index c4b3435..e7404df 100644 --- a/_res/_libs/functions.inc.php +++ b/_res/_libs/functions.inc.php @@ -27,6 +27,15 @@ function isCli () { return (php_sapi_name() == 'cli'); } +/** + * Removes all extra spaces from a string + * @param string $s + * @return string + */ +function alltrim ($s) { + return trim(preg_replace('/\s+/', ' ', $s)); +} + function d () { $aRgs = func_get_args(); $iExit = 1; diff --git a/_tests/models/fooEntityATest.php b/_tests/models/fooentityTest.php similarity index 100% rename from _tests/models/fooEntityATest.php rename to _tests/models/fooentityTest.php diff --git a/_tests/models/fooTdoATest.php b/_tests/models/footdoTest.php similarity index 100% rename from _tests/models/fooTdoATest.php rename to _tests/models/footdoTest.php -- 2.11.4.GIT