當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Locale::formatMoneyArray方法代碼示例

本文整理匯總了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;
 }
開發者ID:jankichaudhari,項目名稱:yii-site,代碼行數:11,代碼來源:Util.php

示例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') {
    ?>
開發者ID:jankichaudhari,項目名稱:yii-site,代碼行數:31,代碼來源:_registerForm.php

示例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;
 }
開發者ID:jankichaudhari,項目名稱:yii-site,代碼行數:11,代碼來源:ClientController.php


注:本文中的Locale::formatMoneyArray方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。