本文整理汇总了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;
}