Home > CMS Tutorial > PHPCMS > body text

phpcms determines whether there are subordinate columns

藏色散人
Release: 2020-01-02 10:17:51
Original
2499 people have browsed it

phpcms determines whether there are subordinate columns

phpcms determines whether there are subordinate columns?

Judge the child to determine, for example:

if($r[child]){
echo "有子栏目";
}else{
echo "无子栏目";
}
Copy after login

or:

{if $r[child]}
有子栏目
{else}
无子栏目
{/if}
Copy after login

or:

{if $child==1}
有子栏目
{else}
无子栏目
{/if}
Copy after login

There are many ways, please try it! There is a good way to share it!

PHP Chinese website, a large number of free PHPCMS tutorials, welcome to learn online!

The above is the detailed content of phpcms determines whether there are subordinate columns. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!