<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>BRADINO &#187; PHP Functions</title>
	<atom:link href="http://www.bradino.com/category/php-functions/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bradino.com</link>
	<description>Just another Wordpress blog</description>
	<lastBuildDate>Wed, 09 Nov 2011 20:09:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>PHP abs function</title>
		<link>http://www.bradino.com/php-functions/abs/</link>
		<comments>http://www.bradino.com/php-functions/abs/#comments</comments>
		<pubDate>Mon, 26 Feb 2007 05:23:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP Functions]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[abs (PHP 3, PHP 4, PHP 5)abs &#8212; Absolute valueDescriptionnumber abs ( mixed number )&#13; Returns the absolute value of number. If the argument number is of type float, the return type is also float, otherwise it is integer (as float usually has a bigger value range than integer). Example 1. abs() example $abs = [...]]]></description>
			<content:encoded><![CDATA[<p>abs<P>    (PHP 3, PHP 4, PHP 5)</P>abs &#8212; Absolute valueDescriptionnumber abs ( mixed number )<BR></BR><P>&#13;     Returns the absolute value of number. If the<br />
     argument number is<br />
     of type float, the return type is also float,<br />
     otherwise it is integer (as float usually has a<br />
     bigger value range than integer).<br />
    </P><P>Example 1. abs() example</P></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$abs</span> <span style="color: #339933;">=</span> <span style="color: #990000;">abs</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">-</span><span style="color:#800080;">4.2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// $abs = 4.2; (double/float)</span>
<span style="color: #000088;">$abs2</span> <span style="color: #339933;">=</span> <span style="color: #990000;">abs</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">5</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>   <span style="color: #666666; font-style: italic;">// $abs2 = 5; (integer)</span>
<span style="color: #000088;">$abs3</span> <span style="color: #339933;">=</span> <span style="color: #990000;">abs</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">-</span><span style="color: #cc66cc;">5</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>  <span style="color: #666666; font-style: italic;">// $abs3 = 5; (integer)</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.bradino.com/php-functions/abs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP acos function</title>
		<link>http://www.bradino.com/php-functions/acos/</link>
		<comments>http://www.bradino.com/php-functions/acos/#comments</comments>
		<pubDate>Mon, 26 Feb 2007 05:23:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP Functions]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[acos (PHP 3, PHP 4, PHP 5)acos &#8212; Arc cosineDescriptionfloat acos ( float arg )&#13; Returns the arc cosine of arg in radians. acos() is the complementary function of cos(), which means that a==cos(acos(a)) for every value of a that is within acos()&#8217; range. &#13; See also: acosh(), asin(), and atan().]]></description>
			<content:encoded><![CDATA[<p>acos<P>    (PHP 3, PHP 4, PHP 5)</P>acos &#8212; Arc cosineDescriptionfloat acos ( float arg )<BR></BR><P>&#13;     Returns the arc cosine of arg in radians.<br />
     acos() is the complementary function of<br />
     cos(), which means that<br />
     a==cos(acos(a)) for every value of a that is within<br />
     acos()&#8217; range.<br />
    </P><P>&#13;     See also:<br />
     acosh(),<br />
     asin(), and<br />
     atan().<br />
    </P></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bradino.com/php-functions/acos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP acosh function</title>
		<link>http://www.bradino.com/php-functions/acosh/</link>
		<comments>http://www.bradino.com/php-functions/acosh/#comments</comments>
		<pubDate>Mon, 26 Feb 2007 05:23:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP Functions]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[acosh (PHP 4 &#62;= 4.1.0, PHP 5)acosh &#8212; Inverse hyperbolic cosineDescriptionfloat acosh ( float arg )&#13; Returns the inverse hyperbolic cosine of arg, i.e. the value whose hyperbolic cosine is arg. Note: This function is not implemented on Windows platforms.&#13; See also: acos(), asinh(), and atanh().]]></description>
			<content:encoded><![CDATA[<p>acosh<P>    (PHP 4 &#62;= 4.1.0, PHP 5)</P>acosh &#8212; Inverse hyperbolic cosineDescriptionfloat acosh ( float arg )<BR></BR><P>&#13;     Returns the inverse hyperbolic cosine of<br />
     arg, i.e. the value whose<br />
     hyperbolic cosine is arg.<br />
    </P><P>Note: This function is not<br />
implemented on Windows platforms.</P><P>&#13;     See also:<br />
     acos(),<br />
     asinh(), and<br />
     atanh().<br />
    </P></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bradino.com/php-functions/acosh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP addcslashes function</title>
		<link>http://www.bradino.com/php-functions/addcslashes/</link>
		<comments>http://www.bradino.com/php-functions/addcslashes/#comments</comments>
		<pubDate>Mon, 26 Feb 2007 05:23:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP Functions]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[addcslashes (PHP 4, PHP 5)addcslashes &#8212; Quote string with slashes in a C styleDescriptionstring addcslashes ( string str, string charlist )&#13; Returns a string with backslashes before characters that are listed in charlist parameter. If charlist contains characters \n, \r etc., they are converted in C-like style, while other non-alphanumeric characters with ASCII codes lower [...]]]></description>
			<content:encoded><![CDATA[<p>addcslashes<P>    (PHP 4, PHP 5)</P>addcslashes &#8212; Quote string with slashes in a C styleDescriptionstring addcslashes ( string str, string charlist )<BR></BR><P>&#13;     Returns a string with backslashes before characters that are<br />
     listed in charlist parameter. If<br />
     charlist contains characters<br />
     \n, \r etc., they are<br />
     converted in C-like style, while other non-alphanumeric characters<br />
     with ASCII codes lower than 32 and higher than 126 converted to<br />
     octal representation.<br />
    </P><P>&#13;     Be careful if you choose to escape characters 0, a, b, f, n, r,<br />
     t and v. They will be converted to \0, \a, \b, \f, \n, \r, \t<br />
     and \v.<br />
     In PHP \0 (NULL), \r (carriage return), \n (newline) and \t (tab)<br />
     are predefined escape sequences, while in C all of these are<br />
     predefined escape sequences.<br />
    </P><P>&#13;     charlist like &#8220;\0..\37&#8243;, which would<br />
     escape all characters with ASCII code between 0 and 31.<br />
     <P>Example 1. addcslashes() example</P></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$escaped</span> <span style="color: #339933;">=</span> <span style="color: #990000;">addcslashes</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$not_escaped</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;<span style="color: #660099; font-weight: bold;">\0</span>..<span style="color: #660099; font-weight: bold;">\37</span>!@<span style="color: #660099; font-weight: bold;">\177</span>..<span style="color: #660099; font-weight: bold;">\377</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>    </P><P>&#13;     When you define a sequence of characters in the charlist argument<br />
     make sure that you know what characters come between the<br />
     characters that you set as the start and end of the range.<br />
     <P></P></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">echo</span> <span style="color: #990000;">addcslashes</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'foo[ ]'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'A..z'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">// output:  \f\o\o\[ \]</span>
<span style="color: #666666; font-style: italic;">// All upper and lower-case letters will be escaped</span>
<span style="color: #666666; font-style: italic;">// ... but so will the [\]^_` and any tabs, line</span>
<span style="color: #666666; font-style: italic;">// feeds, carriage returns, etc.</span></pre></div></div>

<p><P></P><br />
     Also, if the first character in a range has a higher ASCII value<br />
     than the second character in the range, no range will be<br />
     constructed.  Only the start, end and period characters will be<br />
     escaped. Use the ord() function to find the<br />
     ASCII value for a character.<br />
     <P></P></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">echo</span> <span style="color: #990000;">addcslashes</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;zoo['.']&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'z..A'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">// output:  \zoo['\.']</span></pre></div></div>

<p><P></P><br />
    </P><P>&#13;     See also stripcslashes(),<br />
     stripslashes(),<br />
     addslashes(),<br />
     htmlspecialchars(), and<br />
     quotemeta().<br />
    </P></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bradino.com/php-functions/addcslashes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP addslashes function</title>
		<link>http://www.bradino.com/php-functions/addslashes/</link>
		<comments>http://www.bradino.com/php-functions/addslashes/#comments</comments>
		<pubDate>Mon, 26 Feb 2007 05:23:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP Functions]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[addslashes (PHP 3, PHP 4, PHP 5)addslashes &#8212; Quote string with slashesDescriptionstring addslashes ( string str )&#13; Returns a string with backslashes before characters that need to be quoted in database queries etc. These characters are single quote (&#8216;), double quote (&#8220;), backslash (\) and NUL (the NULL byte). &#13; An example use of addslashes() [...]]]></description>
			<content:encoded><![CDATA[<p>addslashes<P>    (PHP 3, PHP 4, PHP 5)</P>addslashes &#8212; Quote string with slashesDescriptionstring addslashes ( string str )<BR></BR><P>&#13;     Returns a string with backslashes before characters that need<br />
     to be quoted in database queries etc.  These characters are<br />
     single quote (&#8216;), double quote<br />
     (&#8220;), backslash (\)<br />
     and NUL (the NULL byte).<br />
    </P><P>&#13;     An example use of addslashes() is when you&#8217;re<br />
     entering data into a database.  For example, to insert the name<br />
     O&#8217;reilly into a database, you will need to escape<br />
     it.  Most databases do this with a \ which would<br />
     mean O\&#8217;reilly.  This would only be to get the data<br />
     into the database, the extra \ will not be inserted.<br />
     Having the PHP directive &#13;     magic_quotes_sybase set to on will mean<br />
     &#8216; is instead escaped with another<br />
     &#8216;.<br />
    </P><P>&#13;     The PHP directive &#13;     magic_quotes_gpc is on by default, and it<br />
     essentially runs addslashes() on all GET, POST,<br />
     and COOKIE data.  Do not use addslashes() on<br />
     strings that have already been escaped with<br />
     magic_quotes_gpc as you&#8217;ll<br />
     then do double escaping.  The function<br />
     get_magic_quotes_gpc() may come in handy for<br />
     checking this.<br />
    </P><P>&#13;     <P>Example 1. An addslashes() example</P></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$str</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;Is your name O'reilly?&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Outputs: Is your name O\'reilly?</span>
<span style="color: #b1b100;">echo</span> <span style="color: #990000;">addslashes</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$str</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>    </P><P>&#13;     See also stripslashes(),<br />
     stripcslashes(),<br />
     addcslashes(),<br />
     htmlspecialchars(),<br />
     quotemeta(), and<br />
     get_magic_quotes_gpc().<br />
    </P></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bradino.com/php-functions/addslashes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP aggregate function</title>
		<link>http://www.bradino.com/php-functions/aggregate/</link>
		<comments>http://www.bradino.com/php-functions/aggregate/#comments</comments>
		<pubDate>Mon, 26 Feb 2007 05:23:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP Functions]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[aggregate (PHP 4 &#62;= 4.2.0)aggregate &#8212; Dynamic class and object aggregation of methods and properties Descriptionvoid aggregate ( object object, string class_name )&#13; Aggregates methods and properties defined in a class to an existing object. Methods and properties with names starting with an underscore character (_) are considered private to the aggregated class and are [...]]]></description>
			<content:encoded><![CDATA[<p>aggregate<P>    (PHP 4 &#62;= 4.2.0)</P>aggregate &#8212;<br />
     Dynamic class and object aggregation of methods and properties<br />
    Descriptionvoid aggregate ( object object, string class_name )<BR></BR><P>&#13;     Aggregates methods and properties defined in a class to<br />
     an existing object. Methods and properties with names starting with<br />
     an underscore character (_) are considered private to<br />
     the aggregated class and are not used, constructors are<br />
     also excluded from the aggregation procedure.<br />
    </P><P>&#13;     See also<br />
     aggregate_info(),<br />
     aggregate_methods(),<br />
     aggregate_methods_by_list(),<br />
     aggregate_methods_by_regexp(),<br />
     aggregate_properties(),<br />
     aggregate_properties_by_list(),<br />
     aggregate_properties_by_regexp(),<br />
     deaggregate()<br />
    </P></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bradino.com/php-functions/aggregate/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP aggregate_info function</title>
		<link>http://www.bradino.com/php-functions/aggregate_info/</link>
		<comments>http://www.bradino.com/php-functions/aggregate_info/#comments</comments>
		<pubDate>Mon, 26 Feb 2007 05:23:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP Functions]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[aggregate_info (no version information, might be only in CVS)aggregate_info &#8212; Returns an associative array of the methods and properties from each class that has been aggregated to the object Descriptionarray aggregate_info ( object object )&#13; Will return the aggregation information for a particular object as an associative array of arrays of methods and properties. The [...]]]></description>
			<content:encoded><![CDATA[<p>aggregate_info<P>    (no version information, might be only in CVS)</P>aggregate_info &#8212;<br />
     Returns an associative array of the methods and properties from<br />
     each class that has been aggregated to the object<br />
    Descriptionarray aggregate_info ( object object )<BR></BR><P>&#13;     Will return the aggregation information for a particular object<br />
     as an associative array of arrays of methods and properties. The<br />
     key for the main array is the name of the aggregated class.<br />
    </P><P>&#13;     For example the code below<br />
     <P>Example 1. Using aggregate_info()</P></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&nbsp;
<span style="color: #000000; font-weight: bold;">class</span> Slicer <span style="color: #009900;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$vegetable</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #000000; font-weight: bold;">function</span> Slicer<span style="color: #009900;">&#40;</span><span style="color: #000088;">$vegetable</span><span style="color: #009900;">&#41;</span> 
    <span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>vegetable <span style="color: #339933;">=</span> <span style="color: #000088;">$vegetable</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #000000; font-weight: bold;">function</span> slice_it<span style="color: #009900;">&#40;</span><span style="color: #000088;">$num_cuts</span><span style="color: #009900;">&#41;</span> 
    <span style="color: #009900;">&#123;</span>
        <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;Doing some simple slicing<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
        <span style="color: #b1b100;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span> <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span> <span style="color: #000088;">$num_cuts</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #666666; font-style: italic;">// do some slicing</span>
        <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">class</span> Dicer <span style="color: #009900;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$vegetable</span><span style="color: #339933;">;</span>
    <span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$rotation_angle</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">90</span><span style="color: #339933;">;</span>   <span style="color: #666666; font-style: italic;">// degrees</span>
&nbsp;
    <span style="color: #000000; font-weight: bold;">function</span> Dicer<span style="color: #009900;">&#40;</span><span style="color: #000088;">$vegetable</span><span style="color: #009900;">&#41;</span> 
    <span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>vegetable <span style="color: #339933;">=</span> <span style="color: #000088;">$vegetable</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #000000; font-weight: bold;">function</span> dice_it<span style="color: #009900;">&#40;</span><span style="color: #000088;">$num_cuts</span><span style="color: #009900;">&#41;</span> 
    <span style="color: #009900;">&#123;</span>
        <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;Cutting in one direction<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
        <span style="color: #b1b100;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span> <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span> <span style="color: #000088;">$num_cuts</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #666666; font-style: italic;">// do some cutting</span>
        <span style="color: #009900;">&#125;</span>
        <span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>rotate<span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>rotation_angle<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;Cutting in a second direction<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
        <span style="color: #b1b100;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span> <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span> <span style="color: #000088;">$num_cuts</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #666666; font-style: italic;">// do some more cutting</span>
        <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #000000; font-weight: bold;">function</span> rotate<span style="color: #009900;">&#40;</span><span style="color: #000088;">$deg</span><span style="color: #009900;">&#41;</span> 
    <span style="color: #009900;">&#123;</span>
        <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;Now rotating {<span style="color: #006699; font-weight: bold;">$this</span>-&amp;gt;vegetable} <span style="color: #006699; font-weight: bold;">{$deg}</span> degrees<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #000000; font-weight: bold;">function</span> _secret_super_dicing<span style="color: #009900;">&#40;</span><span style="color: #000088;">$num_cuts</span><span style="color: #009900;">&#41;</span> 
    <span style="color: #009900;">&#123;</span>
        <span style="color: #666666; font-style: italic;">// so secret we cannot show you ;-)</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000088;">$obj</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Slicer<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'onion'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">aggregate</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$obj</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'Dicer'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">print_r</span><span style="color: #009900;">&#40;</span>aggregate_info<span style="color: #009900;">&#40;</span><span style="color: #000088;">$obj</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p><P>&#13;       Will produce the output<br />
      </P>Array<br />
(<br />
    [dicer] =&#62; Array<br />
        (<br />
            [methods] =&#62; Array<br />
                (<br />
                    [0] =&#62; dice_it<br />
                    [1] =&#62; rotate<br />
                )</p>
<p>            [properties] =&#62; Array<br />
                (<br />
                    [0] =&#62; rotation_angle<br />
                )</p>
<p>        )</p>
<p>)<br />
     As you can see, all properties and methods of the<br />
     Dicer class have been aggregated<br />
     into our new object, with the exception of the class<br />
     constructor and the method _secret_super_dicing<br />
    </P><P>&#13;     See also<br />
     aggregate(),<br />
     aggregate_methods(),<br />
     aggregate_methods_by_list(),<br />
     aggregate_methods_by_regexp(),<br />
     aggregate_properties(),<br />
     aggregate_properties_by_list(),<br />
     aggregate_properties_by_regexp(),<br />
     deaggregate()</p>
<p>    </P></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bradino.com/php-functions/aggregate_info/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP aggregate_methods function</title>
		<link>http://www.bradino.com/php-functions/aggregate_methods/</link>
		<comments>http://www.bradino.com/php-functions/aggregate_methods/#comments</comments>
		<pubDate>Mon, 26 Feb 2007 05:23:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP Functions]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[aggregate_methods (PHP 4 &#62;= 4.2.0)aggregate_methods &#8212; Dynamic class and object aggregation of methods Descriptionvoid aggregate_methods ( object object, string class_name )&#13; Aggregates all methods defined in a class to an existing object, except for the class constructor, or methods whose names start with an underscore character (_) which are considered private to the aggregated class. [...]]]></description>
			<content:encoded><![CDATA[<p>aggregate_methods<P>    (PHP 4 &#62;= 4.2.0)</P>aggregate_methods &#8212;<br />
     Dynamic class and object aggregation of methods<br />
    Descriptionvoid aggregate_methods ( object object, string class_name )<BR></BR><P>&#13;     Aggregates all methods defined in a class to<br />
     an existing object, except for the class constructor, or methods<br />
     whose names start with an underscore character (_) which are<br />
     considered private to the aggregated class.<br />
    </P><P>&#13;     See also<br />
     aggregate(),<br />
     aggregate_info(),<br />
     aggregate_methods_by_list(),<br />
     aggregate_methods_by_regexp(),<br />
     aggregate_properties(),<br />
     aggregate_properties_by_list(),<br />
     aggregate_properties_by_regexp(),<br />
     deaggregate()<br />
    </P></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bradino.com/php-functions/aggregate_methods/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP aggregate_methods_by_list function</title>
		<link>http://www.bradino.com/php-functions/aggregate_methods_by_list/</link>
		<comments>http://www.bradino.com/php-functions/aggregate_methods_by_list/#comments</comments>
		<pubDate>Mon, 26 Feb 2007 05:23:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP Functions]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[aggregate_methods_by_list (PHP 4 &#62;= 4.2.0)aggregate_methods_by_list &#8212; Selective dynamic class methods aggregation to an object Descriptionvoid aggregate_methods_by_list ( object object, string class_name, array methods_list [, bool exclude] )&#13; Aggregates methods from a class to an existing object using a list of method names. The optional parameter exclude is used to decide whether the list contains the [...]]]></description>
			<content:encoded><![CDATA[<p>aggregate_methods_by_list<P>    (PHP 4 &#62;= 4.2.0)</P>aggregate_methods_by_list &#8212;<br />
     Selective dynamic class methods aggregation to an object<br />
    Descriptionvoid aggregate_methods_by_list ( object object, string class_name, array methods_list [, bool exclude] )<BR></BR><P>&#13;     Aggregates methods from a class to<br />
     an existing object using a list of method names. The optional parameter<br />
     exclude is used to decide whether the list<br />
     contains the names of methods to include in the aggregation (i.e.<br />
     exclude is FALSE, which is the default value),<br />
     or to exclude from the aggregation (exclude is<br />
     TRUE).<br />
     </P><P>&#13;     The class constructor or methods<br />
     whose names start with an underscore character (_), which are<br />
     considered private to the aggregated class, are always<br />
     excluded.<br />
    </P><P>&#13;     See also<br />
     aggregate(),<br />
     aggregate_info(),<br />
     aggregate_methods(),<br />
     aggregate_methods_by_regexp(),<br />
     aggregate_properties(),<br />
     aggregate_properties_by_list(),<br />
     aggregate_properties_by_regexp(),<br />
     deaggregate()<br />
    </P></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bradino.com/php-functions/aggregate_methods_by_list/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP aggregate_methods_by_regexp function</title>
		<link>http://www.bradino.com/php-functions/aggregate_methods_by_regexp/</link>
		<comments>http://www.bradino.com/php-functions/aggregate_methods_by_regexp/#comments</comments>
		<pubDate>Mon, 26 Feb 2007 05:23:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP Functions]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[aggregate_methods_by_regexp (PHP 4 &#62;= 4.2.0)aggregate_methods_by_regexp &#8212; Selective class methods aggregation to an object using a regular expression Descriptionvoid aggregate_methods_by_regexp ( object object, string class_name, string regexp [, bool exclude] )&#13; Aggregates methods from a class to an existing object using a regular expression to match method names. The optional parameter exclude is used to decide [...]]]></description>
			<content:encoded><![CDATA[<p>aggregate_methods_by_regexp<P>    (PHP 4 &#62;= 4.2.0)</P>aggregate_methods_by_regexp &#8212;<br />
     Selective class methods aggregation to an object using a regular<br />
     expression<br />
    Descriptionvoid aggregate_methods_by_regexp ( object object, string class_name, string regexp [, bool exclude] )<BR></BR><P>&#13;     Aggregates methods from a class to<br />
     an existing object using a regular expression to match method names.<br />
     The optional parameter<br />
     exclude is used to decide whether the regular<br />
     expression will select<br />
     the names of methods to include in the aggregation (i.e.<br />
     exclude is FALSE, which is the default value),<br />
     or to exclude from the aggregation (exclude is<br />
     TRUE).<br />
     </P><P>&#13;     The class constructor or methods<br />
     whose names start with an underscore character (_), which are<br />
     considered private to the aggregated class, are always<br />
     excluded.<br />
    </P><P>&#13;     See also<br />
     aggregate(),<br />
     aggregate_info(),<br />
     aggregate_methods(),<br />
     aggregate_methods_by_list(),<br />
     aggregate_properties(),<br />
     aggregate_properties_by_list(),<br />
     aggregate_properties_by_regexp(),<br />
     deaggregate()<br />
    </P></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bradino.com/php-functions/aggregate_methods_by_regexp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

