added php function example

This commit is contained in:
pete_morgan
2005-09-10 13:21:14 +00:00
parent 072e88aeef
commit 13bcb96ac0

View File

@@ -9,8 +9,10 @@
Every <emphasis>{if}</emphasis> must be paired with an
<emphasis>{/if}</emphasis>. <emphasis>{else}</emphasis> and
<emphasis>{elseif}</emphasis> are also permitted. All PHP conditionals
and functions
are recognized, such as <emphasis>||</emphasis>, <emphasis>or</emphasis>,
<emphasis>&amp;&amp;</emphasis>, <emphasis>and</emphasis>, etc.
<emphasis>&amp;&amp;</emphasis>, <emphasis>and</emphasis>,
<emphasis>is_array()</emphasis>, etc.
</para>
<para>
@@ -206,6 +208,11 @@
{if $var is even by 3}
...
{/if}
{* check for array. *}
{if is_array($foo) }
...do something
{/if}
]]>
</programlisting>
</example>