2
Mithrandir
Re: What is difference between?

I use 1. since I am both a novice in regex - and don't like to over-use it due to its heaviness.
"When you can flatten entire cities at a whim, a tendency towards quiet reflection and seeing-things-from-the-other-fellow's-point-of-view is seldom necessary."

Cusix Software

1
LazyBadger
What is difference between?

Can anybody explain, what is better? And why second construction alive?!

1.
<{if !empty($xoops_contents)}>
...
<{/if}>

2.
<{if $block.title|regex_replace:"/.*none/":"none" ne "none"}>
...
<{/if}>

When both snippets do (AFAIS) the same task - check if not (something) empty...
Quis custodiet ipsos custodes?

Webmaster of
XOOPS2.RU
XOOPS Modules Proving Ground
XOOPS Themes Exhibition

Login

Who's Online

144 user(s) are online (83 user(s) are browsing Support Forums)


Members: 0


Guests: 144


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits