rfc:pow-operator

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
rfc:pow-operator [2013/12/19 19:16] datibbawrfc:pow-operator [2013/12/19 19:20] datibbaw
Line 28: Line 28:
 <code php> <code php>
 var_dump(pow([], 2)); // int(0) instead of float(0) var_dump(pow([], 2)); // int(0) instead of float(0)
 +</code>
 +
 +Using ''pow()'' as a callback will still work as expected:
 +
 +<code php>
 +call_user_func('pow', 2, 3); // 8
 </code> </code>
  
rfc/pow-operator.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1