Home > Article > CMS Tutorial > What are the commonly used functions in Imperial CMS?
1. esub() intercept field function
Syntax: esub (string, number of intercepted words, suffix)
Example:
<?=esub('12345678',6)?>,返回结果为:123456 <?=esub('12345678',6,'...')?>,返回结果为:123456...
2. Date() conversion time format function
Syntax: date(time format, timestamp)
Example:
<?=date('Y-m-d H:i:s',1277865010)?>,返回结果为:2010-06-30 10:30:10
3. Get the column address function through ID
Syntax: sys_ReturnBqClassname($r,9)
Example: Get the column address with column ID=2
<?php $cr['classid']=2; $classurl=sys_ReturnBqClassname($cr,9); echo $classurl; ?>
4. Obtain IP address function
Syntax: egetip()
Example:
<?php $ip=egetip(); echo $ip; ?>
Recommended tutorial:EmpireCMSTutorial
The above is the detailed content of What are the commonly used functions in Imperial CMS?. For more information, please follow other related articles on the PHP Chinese website!