Home  >  Article  >  CMS Tutorial  >  What are the commonly used functions in Imperial CMS?

What are the commonly used functions in Imperial CMS?

王林
王林Original
2019-11-05 16:58:232925browse

What are the commonly used functions in Imperial CMS?

1. esub() intercept field function

Syntax: esub (string, number of intercepted words, suffix)

Example:

<?=esub(&#39;12345678&#39;,6)?>,返回结果为:123456
<?=esub(&#39;12345678&#39;,6,&#39;...&#39;)?>,返回结果为:123456...

2. Date() conversion time format function

Syntax: date(time format, timestamp)

Example:

<?=date(&#39;Y-m-d H:i:s&#39;,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[&#39;classid&#39;]=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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn