从函数内部检测前缀/运算符


Detect prefixes / operators from inside the function

示例:

function foo($whatever){
  // ... do stuff here
}
// call the function
+foo(1234);

我能从我的函数中找出它是否是用+(或-!等)调用的吗?

函数不是用+调用的。调用该函数,然后将结果用作+的操作数。

所以没有