計算 e 的指數« deg2radexpm1 »PHP ManualMath 函式計算 e 的指數exp(PHP 4, PHP 5, PHP 7, PHP 8)exp — 計算 e 的指數說明 exp(float $arg): float 返回 e 的 arg 次方值。注意: 用 'e' 作為自然對數的底 2.718282.參數 arg 要處理的參數返回值 'e' raised to the power of arg範例示例 #1 exp() 例子 <?phpecho exp(12) . "\n";echo exp(5.7);?> 以上例程會輸出: 1.6275E+005 298.87 參見log() - 自然對數pow() - 指數表達式