Celsius: -20, Fahrenheit: -4
Celsius: -10, Fahrenheit: 14
Celsius: 0, Fahrenheit: 32
Celsius: 10, Fahrenheit: 50
Celsius: 20, Fahrenheit: 68
Celsius: 30, Fahrenheit: 86
Celsius: 40, Fahrenheit: 104
Using a custom loop:
Celsius Array: -20 -10 0 10 20 30 40
Fahrenheit Array: -4 14 32 50 68 86 104 Using var_dump:
Celsius Array: array(7) {
[0]=>
int(-20)
[1]=>
int(-10)
[2]=>
int(0)
[3]=>
int(10)
[4]=>
int(20)
[5]=>
int(30)
[6]=>
int(40)
}
Fahrenheit Array: array(7) {
[0]=>
int(-4)
[1]=>
int(14)
[2]=>
int(32)
[3]=>
int(50)
[4]=>
int(68)
[5]=>
int(86)
[6]=>
int(104)
}
Using print_r:
Celsius Array: Array
(
[0] => -20
[1] => -10
[2] => 0
[3] => 10
[4] => 20
[5] => 30
[6] => 40
)
Fahrenheit Array: Array
(
[0] => -4
[1] => 14
[2] => 32
[3] => 50
[4] => 68
[5] => 86
[6] => 104
)