E
E
exxagw2017-02-12 14:37:56
PHP
exxagw, 2017-02-12 14:37:56

How to convert excel formula to php?

Is there such a formula in excel
=(LOG(D20+1;5)+LOG(D21+1;2))*(D22*D22)/25*D23
how to convert LOG to php way?
php.net/manual/ru/function.log.php - read, but how to output
$D20 = 1;
log($D20+1;5)?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Bobylev, 2017-02-12
@dpigo

$D20 = 1;
$D21 = 1;
$D22 = 1;
$D23 = 1;
$result = (log($D20+1, 5)+log($D21+1, 2))*($D22*$D22)/25*$D23;

echo $result;

sandbox.onlinephpfunctions.com/code/c57dbc28293816...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question