本文整理匯總了PHP中Quote::pnum_sort方法的典型用法代碼示例。如果您正苦於以下問題:PHP Quote::pnum_sort方法的具體用法?PHP Quote::pnum_sort怎麽用?PHP Quote::pnum_sort使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Quote
的用法示例。
在下文中一共展示了Quote::pnum_sort方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: generate_number
function generate_number()
{
$return_value = '';
$number_filed = array('num_suf');
$rown = '';
$n = $this->db->getRowCount($result);
$query = 'SELECT num_suf';
$query .= ' FROM quotes';
$query .= " WHERE deleted=0";
$query .= " AND num_suf IS NOT NULL";
$query .= " ORDER by num_suf ASC";
$result = $this->db->query($query, true, " Error filling in additional detail fields: ");
$n = $this->db->getRowCount($result);
if ($n > 0) {
while ($row = $this->db->fetchByAssoc($result)) {
foreach ($number_filed as $num_field) {
for ($i = 0; $i < $n; $i++) {
$rown[$i] = $row[$num_field];
}
}
}
}
if ($rown != null) {
$return_value = $rown;
$number = Quote::pnum_sort($return_value);
$numb = $number[0] + 1;
} else {
$numb = 10000;
}
return $numb;
}