Home >CMS Tutorial >PHPCMS >phpcms determines whether there are subordinate columns

phpcms determines whether there are subordinate columns

藏色散人
藏色散人Original
2020-01-02 10:17:512554browse

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 "无子栏目";
}

or:

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

or:

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

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!

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