本文整理匯總了PHP中Locale::formatMoneyArray方法的典型用法代碼示例。如果您正苦於以下問題:PHP Locale::formatMoneyArray方法的具體用法?PHP Locale::formatMoneyArray怎麽用?PHP Locale::formatMoneyArray使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Locale
的用法示例。
在下文中一共展示了Locale::formatMoneyArray方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: getPropertyPrices
public static function getPropertyPrices($for = "minimum")
{
if ($for == 'maximum') {
$prices = array_merge([125000, 150000], range(200000, 500000, 50000), range(600000, 1000000, 100 * 1000), range(2000000, 6000000, 1000000));
$prices = array_combine($prices, Locale::formatMoneyArray($prices));
} else {
$prices = array_merge(range(75000, 150000, 25000), range(200000, 500000, 50000), range(600000, 1000000, 100 * 1000));
$prices = array_combine($prices, Locale::formatMoneyArray($prices));
}
return $prices;
}
示例2: array_merge
<?php
/**
* @var $this SiteController
* @var $model PublicClientRegisterForm
* @var $form CActiveForm @var $sent
*/
$minPrices = array_merge(range(75000, 150000, 25000), range(200000, 500000, 50000), range(600000, 1000000, 100 * 1000));
$minPrices = array_combine($minPrices, Locale::formatMoneyArray($minPrices));
$maxPrices = array_merge([125000, 150000], range(200000, 500000, 50000), range(600000, 1000000, 100 * 1000), [2000000, 3000000]);
$maxPrices = array_combine($maxPrices, Locale::formatMoneyArray($maxPrices));
?>
<div class="top-widget-container wide register-form-block">
<div class="inner-padding">
<div class="row-fluid">
<div class="form-header no-margin">
Register With Wooster & Stock
</div>
</div>
<?php
$form = $this->beginWidget('CActiveForm', array('id' => 'register-form'));
?>
<?php
if ($result['type'] == 'success') {
?>
示例3: getBudgetValues
public function getBudgetValues(Client $client = null)
{
$prices = array_merge([125000, 150000], range(200000, 500000, 50000), range(600000, 1000000, 100 * 1000), range(1250000, 2000000, 250000), range(2500000, 6000000, 500000));
$prices = array_merge($prices, range(75000, 150000, 25000), range(200000, 500000, 50000), range(600000, 1000000, 100 * 1000));
if ($client && $client->budget) {
$prices = array_merge($prices, [$client->budget]);
}
$prices = array_combine($prices, Locale::formatMoneyArray($prices));
ksort($prices);
return $prices;
}