A
A
Alexander Ivanov2021-06-06 14:20:39
PHP
Alexander Ivanov, 2021-06-06 14:20:39

Why is it zero?

There is a code: $hold = 1000 $user_info['procent_second`'] = 2 $new should be 20, but it turns out to be 0. Why?
$new = $hold*$user_info['procent_second`']/100

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
FanatPHP, 2021-06-06
@alexivanov77

And now the correct answer, not in the style of kindergarten, "oh, you got a little cake from the wrong mold" By adding this magic line to your PHP code, you will, as if by magic, receive from PHP the answer to your question.
error_reporting(E_ALL);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question