K Engle
K Engle

Reputation: 1562

Get Function of Operator

In Python I can get a function for an operator from the standard library like this:

from operator import add
two = add(1, 1)

Is there a similar way to get an operator function in PHP, or do I have to implement it from scratch?

Upvotes: 0

Views: 46

Answers (1)

elyase
elyase

Reputation: 40973

You have to implement it from scratch.

Upvotes: 2

Related Questions