Reputation: 1562
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