Very good question, it took me a while to fully understand this.
Call a function by passing one parameter:
{"this is my string"|strtoupper} // same as: strtoupper("this is my string") {$a:strtoupper} // same as: strtoupper($a)
Call a function by passing several parameters
{"/"|str_replace:"-":"this is my string"} // same as: str_replace("/", "-", "this is my string") {"/"|str_replace:"-":$a} // same as: str_replace("/", "-", $a)
source share