<?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/language/php/tags/Value</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Wed, 19 Jun 2013 07:39:44 GMT</pubDate>
<item>
<title>(PHP) Insert a Key=>Value at the beginning of an array - lemcoe9</title>
<link>http://snipplr.com/view/59332/insert-a-keyvalue-at-the-beginning-of-an-array/</link>
<description><![CDATA[ <p>There seems to be no easy way to insert a key and value at the beginning of an array, as array_unset does not allow you to specify a key. This is not a very efficient way to do it, but it works. 

Pretend the array is currently: array("a"=>"b", "c"=>"d") and you would like "x"=>"z" at the beginning....

The snippet will result in $array being: array("x"=>"z", "a"=>"b", "c"=>"d")</p> ]]></description>
<pubDate>Sun, 02 Oct 2011 12:24:14 GMT</pubDate>
<guid>http://snipplr.com/view/59332/insert-a-keyvalue-at-the-beginning-of-an-array/</guid>
</item>
<item>
<title>(PHP) Search value by key in multidimensional array - jurius</title>
<link>http://snipplr.com/view/55684/search-value-by-key-in-multidimensional-array/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 25 Jun 2011 01:37:50 GMT</pubDate>
<guid>http://snipplr.com/view/55684/search-value-by-key-in-multidimensional-array/</guid>
</item>
<item>
<title>(PHP) nested Array search by value or key - Japan</title>
<link>http://snipplr.com/view/51108/nested-array-search-by-value-or-key/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 25 Mar 2011 12:40:27 GMT</pubDate>
<guid>http://snipplr.com/view/51108/nested-array-search-by-value-or-key/</guid>
</item>
<item>
<title>(PHP) Set a minimum value - chopbust</title>
<link>http://snipplr.com/view/50225/set-a-minimum-value/</link>
<description><![CDATA[ <p>Method takes the amount and compares with the lowest/highest value and assigns that variable with the lowest/highest value. Good for setting the bar for lowest/highest value found in a set of value.</p> ]]></description>
<pubDate>Mon, 07 Mar 2011 21:44:48 GMT</pubDate>
<guid>http://snipplr.com/view/50225/set-a-minimum-value/</guid>
</item>
<item>
<title>(PHP) Find the longest string in an array - jatkins</title>
<link>http://snipplr.com/view/49009/find-the-longest-string-in-an-array/</link>
<description><![CDATA[ <p>Released into the public domain.</p> ]]></description>
<pubDate>Tue, 15 Feb 2011 01:29:57 GMT</pubDate>
<guid>http://snipplr.com/view/49009/find-the-longest-string-in-an-array/</guid>
</item>
<item>
<title>(PHP) Grab a random Value from an Array - embrace</title>
<link>http://snipplr.com/view/42408/grab-a-random-value-from-an-array/</link>
<description><![CDATA[ <p>Nothing special.
First snippet. :)</p> ]]></description>
<pubDate>Sat, 16 Oct 2010 19:16:36 GMT</pubDate>
<guid>http://snipplr.com/view/42408/grab-a-random-value-from-an-array/</guid>
</item>
<item>
<title>(PHP) Prepare value for database - sebikovacs</title>
<link>http://snipplr.com/view/36718/prepare-value-for-database/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 06 Jul 2010 02:51:14 GMT</pubDate>
<guid>http://snipplr.com/view/36718/prepare-value-for-database/</guid>
</item>
<item>
<title>(PHP) sfPropelForm default value - skwok</title>
<link>http://snipplr.com/view/20551/sfpropelform-default-value/</link>
<description><![CDATA[ <p>The following snippet sets a value in sfPropelForm. I have tried $form->getValues() and setting a value in it and also getting the embedded object and calling one of the setters without success.</p> ]]></description>
<pubDate>Thu, 01 Oct 2009 16:28:40 GMT</pubDate>
<guid>http://snipplr.com/view/20551/sfpropelform-default-value/</guid>
</item>
<item>
<title>(PHP) Remove value from array - svenito</title>
<link>http://snipplr.com/view/20405/remove-value-from-array/</link>
<description><![CDATA[ <p>Remove $value from $array</p> ]]></description>
<pubDate>Tue, 29 Sep 2009 06:59:53 GMT</pubDate>
<guid>http://snipplr.com/view/20405/remove-value-from-array/</guid>
</item>
<item>
<title>(PHP) Array Add Sufffix - iloveitaly</title>
<link>http://snipplr.com/view/16816/array-add-sufffix/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 09 Jul 2009 13:45:16 GMT</pubDate>
<guid>http://snipplr.com/view/16816/array-add-sufffix/</guid>
</item>
<item>
<title>(PHP) Search for a value in an array - jamierumbelow</title>
<link>http://snipplr.com/view/10568/search-for-a-value-in-an-array/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 18 Dec 2008 16:02:36 GMT</pubDate>
<guid>http://snipplr.com/view/10568/search-for-a-value-in-an-array/</guid>
</item>
<item>
<title>(PHP) General get value from possible input sources - luizlopes</title>
<link>http://snipplr.com/view/6471/general-get-value-from-possible-input-sources/</link>
<description><![CDATA[ <p>This can be used as a general function to get the value stored in any of the possible input sources. 
use</p> ]]></description>
<pubDate>Tue, 27 May 2008 13:11:24 GMT</pubDate>
<guid>http://snipplr.com/view/6471/general-get-value-from-possible-input-sources/</guid>
</item>
<item>
<title>(PHP) Check if integer _value_ - jgeewax</title>
<link>http://snipplr.com/view/2705/check-if-integer-value/</link>
<description><![CDATA[ <p>PHP has is_numeric, and is_int, but this is a not a complete set. Is_numeric doesn't maintain that the value is strictly an integer, and is_int returns true if the TYPE of the variable is an integer. This returns whether a variable holds an integer value as either a true int, or as a string.</p> ]]></description>
<pubDate>Wed, 23 May 2007 10:50:04 GMT</pubDate>
<guid>http://snipplr.com/view/2705/check-if-integer-value/</guid>
</item>
</channel>
</rss>