Are the results of functions being cached internally by PHP?
Simple example:
public function calc($arg){
return pow($arg,0.5);
}
echo calc(5) . "<br>";
echo calc(5) . "<br>";
Will PHP caculate calc() twice, or will it recognize that the argument hasn't changed and give me some kind of cached result?