Get the App
SLTechnology News&Howtos  ›  Servers  › 

How does phpcms judge whether there are subordinate columns?

Shulou Source: shulou.com Published: 2022-06-02 01:30:20 10月01日 Update

This article mainly introduces how phpcms judges whether there are subordinate columns, which have certain reference value, and friends who need them can refer to them. I hope you will have a lot of success after reading this article. Let's take a look at it together.

Phpcms determines whether there are subordinate columns?

To judge child to determine, for example:

if($r[child]){echo "has child column";}else{echo "has no child column";}

Or:

{if$r[child]} has child {else} has no child {/if}

Or:

{if$child==1} has sub-column {else} no sub-column {/if} thank you for reading this article carefully, hope Xiaobian share phpcms how to judge whether there are subordinate column content to help everyone, but also hope that everyone more support, pay attention to industry information channels, encounter problems to find, detailed solutions waiting for you to learn!

Tags: Columns subordinates articles childless value content at the same time methods friends column content editing industry information information channels questions channels references learning help support Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia OPPO Reno Shulou Technology Shulou Tech Info Linux