Location: PHPKode > projects > PHP Toolbox > apidoc/collect_fields.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<HTML>
<HEAD>
   <TITLE> collect_fields</TITLE>
   <META NAME="GENERATOR" CONTENT="DOC++ 3.4.8">
   <LINK REL="stylesheet" TYPE="text/css" HREF="docxx.css">
</HEAD>
 <body>
<h1>PHP/Toolbox#2</h1>
<a name=top>&nbsp;</a>
<div class="navbar">
=[<a href="index.html">Contents</a>]=[<a href="HIER.html">Class Tree</a>]=[<a href="#bottom">Bottom</a>]=
</div>
<br>
In file No file:<H2> <A HREF="#DOC.DOCU">collect_fields</A></H2><H2>($field_descr,  $arg=" ",  $arg2=" ")</H2><BLOCKQUOTE>Collects form field values.</BLOCKQUOTE>
<HR>
<H2>Documentation</H2>
<BLOCKQUOTE>Collects form field values.
From:
<li> global space (e.g. <code>collect_fields(array("name"=>"term(name)"),"infix")</code>) or
<li> specified array/object (e.g. <code>collect_fields(array("name"=>"term(name)"),$record,"infix")</code>)
</li>
and returns result:
<xmp> collect_fields(array("a"=>"a='\$a'","b"=>"abs('\$b')),[$rec,]"&&") yields "a=1&&abs(2)" </xmp>
</BLOCKQUOTE>

<A NAME="DOC.DOCU"></A>
<DL><DT><DT><B>Parameters:</B><DD><B>array</B> - 	- field descriptions, e.g. <<!1><A HREF="CTextarea.html#DOC.53.3">code</A>>array("a"=>"a='\$a'", "b"=>"abs('\$b'))</<!1><A HREF="CTextarea.html#DOC.53.3">code</A>>.
Note that they are eval'ed.
<BR><B>array</B> - 	- fields are collected from it if it's specified.
<BR><B>string</B> - 	- infix.
<BR><DT><B>Returns:</B><DD>  string<BR><DD></DL><P> <a name=bottom>&nbsp;</a>
<div class="navbar">
=[<a href="index.html">Contents</a>]=[<a href="HIER.html">Class Tree</a>]=[<a href="#top">Top</a>]=
</div><HR>
<BR>
This page was generated with the help of <A HREF="http://docpp.sourceforge.net">DOC++</A>.
</BODY>
</HTML>
Return current item: PHP Toolbox