Could you please give me a detailed explanation of how the multiplication table is calculated? I really can’t figure it out. It’s going to explode.╮(╯▽╰)╭
for ($i = 1 ; $i < 10 ; $i ){
for ( $j=1; $j<=$i; $j ){
echo $j.'x'.'$i'.'='.($i*$j).'';
}
echo '<br />';
}
The loop is easy to understand. You can bring the values in step by step to see what the result of the operation is. Look from the inside out, for example, starting from the first for loop outside: