本文整理匯總了PHP中Utility::subString方法的典型用法代碼示例。如果您正苦於以下問題:PHP Utility::subString方法的具體用法?PHP Utility::subString怎麽用?PHP Utility::subString使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Utility
的用法示例。
在下文中一共展示了Utility::subString方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: getDetail
public function getDetail($id)
{
// 獲取一條信息
if (isset($id)) {
$arrResultsInfo = $this->getParentDetail($this->arrRequestApi['SECOND_HOUSE_DETAIL'] . '&id=' . $id);
$arrResultsInfo['endtime'] = Utility::subString($arrResultsInfo['endtime'], 10);
return $arrResultsInfo;
}
}
示例2:
?>
" >
<?php
echo $value['id'];
?>
</label>
</td>
<td>
<!-- <span class="sortStyle">
<?php
echo Utility::outStrSort($value['payname']);
?>
</span> -->
<?php
echo Utility::subString($value['payname'], 12);
?>
</td>
<td>
<?php
echo $walletPayType[$value['paytype']];
?>
</td>
<td>
<?php
echo $value['money'];
?>
</td>
示例3: count
</td>
<td>
<!-- <span class="sortStyle">
<?php
echo Utility::outStrSort($value['title']);
?>
</span> -->
<?php
echo Utility::subString($value['title'], 12);
?>
</td>
<td>
<?php
echo Utility::subString($value['description'], 12);
?>
</td>
<td>
<?php
echo $systemStatus[$value['status']];
?>
</td>
<td>
<?php
echo mb_substr($value['createtime'], 0, count($value['createtime']) - 4);
?>
</td>
示例4:
<label for="<?php
echo $key;
?>
" >
<?php
echo $value['id'];
?>
</label>
</td>
<td title="<?php
echo $value['title'];
?>
">
<?php
echo Utility::subString($value['title'], 12);
?>
</td>
<td>
<?php
echo @$arrADType[$value['adtype']];
?>
</td>
<td>
示例5:
echo $value['areaMain'] . '-';
echo $value['areaSecond'] . '-';
echo $value['areaThird'];
?>
</td>
<td title="<?php
echo $value['address'];
?>
">
<?php
Utility::subString($value['address'], 12);
?>
<?php
echo Utility::subString($value['modifyTime']);
?>
</td>
<td>
<?php
echo @$arrNewsStatus[$value['status']];
?>
</td>
<td>