21: How to calculate the product of a PHP array - PHP 7 Tutorial

preview_player
Показать описание
This tutorial demonstrates how to calculate the product of a PHP array

*****

******
Follow How To Code Well

******
Support How To Code Well
Be a member on Patreon:
Buy me a coffee:
Рекомендации по теме
Комментарии
Автор

I am not sure if I understood this php method. So we have php method which multiples numbers in array. By passing array to that method method itself calculates "magic number". I create variable with any number and comparing my variable with that value which generate array_product method. So I do not see how it can be useful in practice. It sounds like I have created variable 26 (my target) and use php method rand(), make statement. If all rand number match with my variable 26, ok, if not, bad. Just did not see how this array_product() can be useful, because its generate "random number" from array. Why I want that?
Just many questions, but I like your tuts ;D

rimantasdanilevicius