<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - leonelsantos</title>
<link>http://snipplr.com/users/leonelsantos</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Sun, 26 May 2013 17:18:11 GMT</pubDate>
<item>
<title>(PHP) Time Conflict Check</title>
<link>http://snipplr.com/view/34632/time-conflict-check/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 17 May 2010 10:37:38 GMT</pubDate>
<guid>http://snipplr.com/view/34632/time-conflict-check/</guid>
</item>
<item>
<title>(PHP) PHP Image Upload Create Thumbnails Class</title>
<link>http://snipplr.com/view/34023/php-image-upload-create-thumbnails-class/</link>
<description><![CDATA[ <p>A class for uploading images and creating thumbnails.

Example:
		try{
			$img = new img('photo');
			if($_FILES['photo']['size']>=1000000){
				exit('The file size of the file you are trying to upload is over limit.
				Your file size = '.$_FILES['photo']['size'].' bytes. File size limit = '.
				$this->_limitSize.' bytes. Try again.');
			}
			$img->setUploadFolder('img/');
			$img->setFilename($id);
			$img->setDimensions(250,175);
			$img->cropToSquare();
			$img->upload();
			$img->thumb();
			$errors = $img->getErrors();
		} catch (Exception $e) {
			$errors = $e->getMessage();
		}</p> ]]></description>
<pubDate>Fri, 07 May 2010 09:15:03 GMT</pubDate>
<guid>http://snipplr.com/view/34023/php-image-upload-create-thumbnails-class/</guid>
</item>
<item>
<title>(PHP) PHP Compare Multi-dimensional Array Function</title>
<link>http://snipplr.com/view/23291/php-compare-multidimensional-array-function/</link>
<description><![CDATA[ <p>For more information, see php.net, under usort

It works with dates

Replace 0 for the array's key you want to sort. For example, if you have a start_date array key you would like to compare, then you would replace 0 for start_date.

If you want to do a reverse sort, just switch the -1 and 1.</p> ]]></description>
<pubDate>Tue, 17 Nov 2009 11:33:45 GMT</pubDate>
<guid>http://snipplr.com/view/23291/php-compare-multidimensional-array-function/</guid>
</item>
</channel>
</rss>