I will try to be as brief as possible.
I have a php file with one function. I want that function to return a array which will contain multiple variables. Next I want to load this array in my html file.
The structure of my php:
<?php
function solve(){
if($oblast == "1"){
//
switch ($sadzba) {
case "1": $price1=.... ; break;
case "2": $price2=.....;break;
...
}
}
$result = array($price1, $price2);
return $result;
}solve();
And now I want to access to $result in my html file so I can do this for example:
<div id="first"><?php echo $result[0] ?></div>
<div id="second"><?php echo $result[1] ?></div>
How can be this done please?