<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/tags/function</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Sat, 25 May 2013 09:47:42 GMT</pubDate>
<item>
<title>(PHP) Debug Function - tucq88</title>
<link>http://snipplr.com/view/70789/debug-function/</link>
<description><![CDATA[ <p>Use for debug variables in clear way</p> ]]></description>
<pubDate>Mon, 15 Apr 2013 15:07:05 GMT</pubDate>
<guid>http://snipplr.com/view/70789/debug-function/</guid>
</item>
<item>
<title>(PHP) Check if arrays equal each other - MaxHudson</title>
<link>http://snipplr.com/view/69798/check-if-arrays-equal-each-other/</link>
<description><![CDATA[ <p>Checks if two given arrays equal each other as php doesn't have a built in function for this.</p> ]]></description>
<pubDate>Wed, 06 Feb 2013 06:00:15 GMT</pubDate>
<guid>http://snipplr.com/view/69798/check-if-arrays-equal-each-other/</guid>
</item>
<item>
<title>(jQuery) Quick jQuery init function - snippetleon</title>
<link>http://snipplr.com/view/69697/quick-jquery-init-function/</link>
<description><![CDATA[ <p>Simple init function setup</p> ]]></description>
<pubDate>Wed, 30 Jan 2013 05:04:07 GMT</pubDate>
<guid>http://snipplr.com/view/69697/quick-jquery-init-function/</guid>
</item>
<item>
<title>(PHP) Advanced cookie function with php - kameshsoft</title>
<link>http://snipplr.com/view/69473/advanced-cookie-function-with-php/</link>
<description><![CDATA[ <p>To set cookie use "cookie('name of your cookie','cookie data','expire date ')" it will set your cookie in the user browser .
To get the saved cookie use "cookie('name of your cookie')" it will give you the value of the cookie which you saved in the user's browser .</p> ]]></description>
<pubDate>Tue, 15 Jan 2013 21:37:00 GMT</pubDate>
<guid>http://snipplr.com/view/69473/advanced-cookie-function-with-php/</guid>
</item>
<item>
<title>(JavaScript) Template for a Javascript function with optional and mandatory arguments passed as an object collection - davidwaterston</title>
<link>http://snipplr.com/view/68920/template-for-a-javascript-function-with-optional-and-mandatory-arguments-passed-as-an-object-collection/</link>
<description><![CDATA[ <p>A simple template for a JavaScript function which allows for an arbitrary number of named arguments to be passed in. This is achieved by passing a single object as an argument with each of the 'real' arguments being a key/value pair. In this way arguments can be passed in any order and we can easily add in new arguments.

To call, simply pass in an object with the required arguments:
    myFunction ({opt1: 'cat', opt4: 'dog', opt2: 'monkey'})

Validates clean in jsLint.</p> ]]></description>
<pubDate>Mon, 03 Dec 2012 07:48:27 GMT</pubDate>
<guid>http://snipplr.com/view/68920/template-for-a-javascript-function-with-optional-and-mandatory-arguments-passed-as-an-object-collection/</guid>
</item>
<item>
<title>(VB.NET) VB.NET Method Perform Scalar - nimblebits</title>
<link>http://snipplr.com/view/68801/vbnet-method-perform-scalar/</link>
<description><![CDATA[ <p>This is a method that can be used to take a connection string and a valid oledb command and perform a scalar. This returns an Integer/Int32 value.</p> ]]></description>
<pubDate>Wed, 28 Nov 2012 21:19:37 GMT</pubDate>
<guid>http://snipplr.com/view/68801/vbnet-method-perform-scalar/</guid>
</item>
<item>
<title>(PHP) clear out jquery to prevent conflicts - thesmu</title>
<link>http://snipplr.com/view/68158/clear-out-jquery-to-prevent-conflicts/</link>
<description><![CDATA[ <p>goes in the functions file</p> ]]></description>
<pubDate>Thu, 08 Nov 2012 04:34:16 GMT</pubDate>
<guid>http://snipplr.com/view/68158/clear-out-jquery-to-prevent-conflicts/</guid>
</item>
<item>
<title>(PHP) POST Function Using HTTP Headers Return Result In A Variable - halk</title>
<link>http://snipplr.com/view/68151/post-function-using-http-headers-return-result-in-a-variable/</link>
<description><![CDATA[ <p>This function dosen't use curl, or any other libraries.  Just include it in your function library and use it like this:
$Post_result = _post('http://www.yourdomain.com/your_path/post_api.php',"method=fetchJson&amp;params=select * from user");</p> ]]></description>
<pubDate>Wed, 07 Nov 2012 20:40:32 GMT</pubDate>
<guid>http://snipplr.com/view/68151/post-function-using-http-headers-return-result-in-a-variable/</guid>
</item>
<item>
<title>(C++) polje.h - mronki</title>
<link>http://snipplr.com/view/68146/poljeh/</link>
<description><![CDATA[ <p>polje.h header</p> ]]></description>
<pubDate>Wed, 07 Nov 2012 17:39:59 GMT</pubDate>
<guid>http://snipplr.com/view/68146/poljeh/</guid>
</item>
<item>
<title>(C++) ATP list - mronki</title>
<link>http://snipplr.com/view/68143/atp-list/</link>
<description><![CDATA[ <p>program za evidenciju životinja u trgovini sa kućnim ljubimcima, ispis prema štifri (silazno), te prema cijeni i nazivu (silazno), oba sortiranja implementirana pomoću merge sorta, ispis svih elemenata koji imaju atribut datum nakon 23.rujna 2012, brisanje prema vrsti ili pojedinačno prema nazivu,</p> ]]></description>
<pubDate>Wed, 07 Nov 2012 17:30:53 GMT</pubDate>
<guid>http://snipplr.com/view/68143/atp-list/</guid>
</item>
<item>
<title>(JavaScript) A function that uses images to perform a countdown. - o0110o</title>
<link>http://snipplr.com/view/67847/a-function-that-uses-images-to-perform-a-countdown/</link>
<description><![CDATA[ <p>Set the desired date within the function. 
Make some images and label them "1.jpg, 2.jpg, 3.jpg, etc...".
That's how it's done.</p> ]]></description>
<pubDate>Sun, 21 Oct 2012 03:32:38 GMT</pubDate>
<guid>http://snipplr.com/view/67847/a-function-that-uses-images-to-perform-a-countdown/</guid>
</item>
<item>
<title>(PHP) A function that forces a file to download. - o0110o</title>
<link>http://snipplr.com/view/67838/a-function-that-forces-a-file-to-download/</link>
<description><![CDATA[ <p>This function will force a file to be downloaded. It accepts $_path as a parameter.</p> ]]></description>
<pubDate>Sat, 20 Oct 2012 10:51:14 GMT</pubDate>
<guid>http://snipplr.com/view/67838/a-function-that-forces-a-file-to-download/</guid>
</item>
<item>
<title>(PHP) A function to get the real IP address. - o0110o</title>
<link>http://snipplr.com/view/67837/a-function-to-get-the-real-ip-address/</link>
<description><![CDATA[ <p>This function performs several checks to make sure it's getting the correct IP address.</p> ]]></description>
<pubDate>Sat, 20 Oct 2012 10:36:52 GMT</pubDate>
<guid>http://snipplr.com/view/67837/a-function-to-get-the-real-ip-address/</guid>
</item>
<item>
<title>(PHP) A function to get a files contents with curl. - o0110o</title>
<link>http://snipplr.com/view/67836/a-function-to-get-a-files-contents-with-curl/</link>
<description><![CDATA[ <p>A handy function to get the contents of a file with curl. Accepts $_path as a parameter.</p> ]]></description>
<pubDate>Sat, 20 Oct 2012 10:23:15 GMT</pubDate>
<guid>http://snipplr.com/view/67836/a-function-to-get-a-files-contents-with-curl/</guid>
</item>
<item>
<title>(PHP) A function to see if a file exists with curl. - o0110o</title>
<link>http://snipplr.com/view/67835/a-function-to-see-if-a-file-exists-with-curl/</link>
<description><![CDATA[ <p>This function will use curl to see if a file exists at the location it's provided. It accepts $_path as a parameter.</p> ]]></description>
<pubDate>Sat, 20 Oct 2012 10:15:04 GMT</pubDate>
<guid>http://snipplr.com/view/67835/a-function-to-see-if-a-file-exists-with-curl/</guid>
</item>
<item>
<title>(PHP) A function to get file sizes in multiple formats with curl. - o0110o</title>
<link>http://snipplr.com/view/67834/a-function-to-get-file-sizes-in-multiple-formats-with-curl/</link>
<description><![CDATA[ <p>A function to get a files size via curl. Accepts $_path, $_unit, $_float, $_username &amp; $_password; In the listed order.</p> ]]></description>
<pubDate>Sat, 20 Oct 2012 10:06:54 GMT</pubDate>
<guid>http://snipplr.com/view/67834/a-function-to-get-file-sizes-in-multiple-formats-with-curl/</guid>
</item>
<item>
<title>(PHP) A function to get file mime-types with curl. - o0110o</title>
<link>http://snipplr.com/view/67832/a-function-to-get-file-mimetypes-with-curl/</link>
<description><![CDATA[ <p>This is a function to retrieve the mime-type of a file by checking the header response with curl. It accepts the file-path as a parameter &amp; it also has a fallback for empty returns.</p> ]]></description>
<pubDate>Sat, 20 Oct 2012 09:45:26 GMT</pubDate>
<guid>http://snipplr.com/view/67832/a-function-to-get-file-mimetypes-with-curl/</guid>
</item>
<item>
<title>(PHP) Size format function - zhyar</title>
<link>http://snipplr.com/view/67551/size-format-function/</link>
<description><![CDATA[ <p>Use: echo format_size(filesize("fichier"));
Example result: 13,37 Ko</p> ]]></description>
<pubDate>Mon, 01 Oct 2012 21:37:53 GMT</pubDate>
<guid>http://snipplr.com/view/67551/size-format-function/</guid>
</item>
<item>
<title>(Objective C) xcode declare and call method with parameter - kutyadog</title>
<link>http://snipplr.com/view/67391/xcode-declare-and-call-method-with-parameter/</link>
<description><![CDATA[ <p>I wanted to make a function / method and pass a var to it form another class.</p> ]]></description>
<pubDate>Wed, 26 Sep 2012 23:56:24 GMT</pubDate>
<guid>http://snipplr.com/view/67391/xcode-declare-and-call-method-with-parameter/</guid>
</item>
<item>
<title>(PHP) PHP Function to Convert 12 Hour Time to 24 Hour Format - kosinix</title>
<link>http://snipplr.com/view/67326/php-function-to-convert-12-hour-time-to-24-hour-format/</link>
<description><![CDATA[ <p>Convert 12-hour time format with hour, minutes, seconds, and meridiem into 24-hour  format. Performs data correction to make sure hours, minutes and seconds have leading zeros if needed.

The trick here is to use strtotime() where we pass the time string in this format: "hh:mm:ss meridiem" 
Example: "02:30:00 pm"</p> ]]></description>
<pubDate>Sun, 23 Sep 2012 10:29:48 GMT</pubDate>
<guid>http://snipplr.com/view/67326/php-function-to-convert-12-hour-time-to-24-hour-format/</guid>
</item>
</channel>
</rss>