Log in

View Full Version : php conditional efficiency


MacMorag
04-04-2006, 09:09 AM
Is there much of a difference, server efficiency-wise, between the following:

In php:

if ($foo = bar) {action}

In html:

<if condition="$foo[bar]">action</if>

Gut feeling tells me php method is more efficient - but is there a real difference?

Failed to find an answer online, even from the mighty Google.

Thanks.