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!