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

What are the commonly used functions in Imperial CMS?

王林
Release: 2019-11-05 16:58:23
Original
2977 people have browsed it

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...
Copy after login

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
Copy after login

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;
?>
Copy after login

4. Obtain IP address function

Syntax: egetip()

Example:

<?php
$ip=egetip();
echo $ip;
?>
Copy after login

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!

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template