Как сделать пробел в php

Всех с Новым годом ! Прошу помощи, не силён в PHP Подскажите как сделать пробел в данном коде PHP, нужно между параметрами сделать пробел

'.$Main->price($param["data"]["ads_price"],$param["data"]["ads_currency"]).'

Если можно, подскажите пример Заранее спасибо !

<div class="board-view-price price-currency" >
          '.$Main->price($param["data"]["ads_price"],$param["data"]["ads_currency"]).'
          '.$Main->adOutCurrency($param["data"]["ads_price"], $param["data"]["ads_currency"]).'
        </div>

Ответы (2 шт):

Автор решения: artemgh

Довольно странно, что для Вас не работает метод @sousage1212. Но Вы можете использовать html тег: &nbsp он добавить дополнительный пробел. Итоговый код:

<div class="board-view-price price-currency" >
          '.$Main->price($param["data"]["ads_price"],$param["data"]["ads_currency"]).'&nbsp;
          '.$Main->adOutCurrency($param["data"]["ads_price"], $param["data"]["ads_currency"]).'
        </div>

P.S проверьте поддержку этого тега в браузерах!

→ Ссылка
Автор решения: sousage1212

Попробуйте

function price($float=0, $currency_code="", $abbreviation_million=false){
    global $config, $settings;

    $ULang = new ULang();

    if( !$settings["abbreviation_million"] ){
        $abbreviation_million = false;
    }

    if( $currency_code ){
       $currency = $settings["currency_data"][ $currency_code ]["sign"];
    }else{
       $currency = $settings["currency_main"]["sign"];
    }
    $currency = " <span style='font-size: 14px;'>".$currency."</span>";

    $float_format = number_format($float,1,".",",");

    if( $abbreviation_million == false ){

        if( intval(explode(".", $float_format )[1]) == 0 ){
           return number_format($float,$config["number_format"]["decimals"],$config["number_format"]["dec_point"],$config["number_format"]["thousands_sep"]).$currency;
        }else{
           if( strpos($float_format, ",") === false ){
              return number_format($float,1,$config["number_format"]["dec_point"],$config["number_format"]["thousands_sep"]).$currency;
           }else{
              return number_format($float,$config["number_format"]["decimals"],$config["number_format"]["dec_point"],$config["number_format"]["thousands_sep"]).$currency;
           }
        }

    }else{
        
        if( $float >= 1000000 && $float <= 9999999 ){
            
            if( substr($float, 1,1) != 0 ){
               return substr($float, 0,1).','.substr($float, 1,1).' '.$ULang->t("млн").$currency;
            }else{
               return substr($float, 0,1).' '. $ULang->t("млн").$currency;
            }

        }elseif( $float >= 10000000 && $float <= 99999999 ){
            return substr($float, 0,2).' '. $ULang->t("млн").$currency;
        }elseif( $float >= 100000000 && $float <= 999999999 ){
            return substr($float, 0,3).' '. $ULang->t("млн") .$currency;
        }else{
            return number_format($float,$config["number_format"]["decimals"],$config["number_format"]["dec_point"],$config["number_format"]["thousands_sep"]).$currency;
        }

    }

}
→ Ссылка