cvs: smarty /docs/en/designers/language-builtin-functions language-function-if.xml

"Peter 'Mash' Morgan" <[email protected]>
Newsgroups gmane.comp.php.cvs.smarty
Message-ID <cvspete_morgan1126358474@cvsserver>
pete_morgan		Sat Sep 10 09:21:14 2005 EDT

  Modified files:              
    /smarty/docs/en/designers/language-builtin-functions	
                                                        	language-function-if.xml 
  Log:
  added php function example
  
http://cvs.php.net/diff.php/smarty/docs/en/designers/language-builtin-functions/language-function-if.xml?r1=1.5&r2=1.6&ty=u
Index: smarty/docs/en/designers/language-builtin-functions/language-function-if.xml
diff -u smarty/docs/en/designers/language-builtin-functions/language-function-if.xml:1.5 smarty/docs/en/designers/language-builtin-functions/language-function-if.xml:1.6
--- smarty/docs/en/designers/language-builtin-functions/language-function-if.xml:1.5	Fri May 27 12:25:01 2005
+++ smarty/docs/en/designers/language-builtin-functions/language-function-if.xml	Sat Sep 10 09:21:14 2005
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.5 $ -->
+<!-- $Revision: 1.6 $ -->
 <sect1 id="language.function.if">
  <title>{if},{elseif},{else}</title>
  <para>
@@ -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>

-- 
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.