Это действительно странно, и я просто не могу понять, почему это происходит. Вот мой сценарий: [code] public function getWeatherConfig($lat =35.683, $lon=139.778, $elevation=10){
// Loop through the variables and check their values foreach ($weatherConfig_General as $varName => $value) {
if ($value or $i < $count) { $query_string .= $varName.'='.$value.'&'; // Add the variable name to the trueVars array if it's true } else { $query_string .= $varName.'='.$value; // do not add & on the last value. } $i++; }