summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--it_pipe.class6
1 files changed, 3 insertions, 3 deletions
diff --git a/it_pipe.class b/it_pipe.class
index 3dbf313..bed5537 100644
--- a/it_pipe.class
+++ b/it_pipe.class
@@ -21,9 +21,9 @@ function __construct($p = array())
$this->lines = array_merge((array)$this->lines, file($fn, FILE_IGNORE_NEW_LINES));
}
-#
-# Magic functions
-#
+/**
+ * Apply any php function to every line in pipe. Pass line as first arg except with some functions (e.g. explode)
+ */
function __call($name, $params)
{
list($parampos) = self::$lastargfunc[$name] ? array(count($params)) : array(0, array_unshift($params, ""));