PHP 101 foreach
Apr 5, 2021
basic code with PHP
First, make a Int variable named “result”.($result)
Second, make a Array name “stock”.($stock)
Use Foreach.
- In Foreach, use $stock mean
foreach($stock as $key => $stock){
$result += $stock
}
isset($report[$key]) return true not null, return false means null.