<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
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/"
> <channel><title>Comments on: PHP: Removing an item from an array</title> <atom:link href="http://netfactory.dk/2008/08/09/php-removing-an-item-from-an-array/feed/" rel="self" type="application/rss+xml" /><link>http://netfactory.dk/2008/08/09/php-removing-an-item-from-an-array/</link> <description>WebDevelopment, Travel and Photography...</description> <lastBuildDate>Tue, 23 Feb 2010 18:17:43 +0000</lastBuildDate> <generator>http://wordpress.org/?v=2.9.2</generator> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>By: hypnosis.course</title><link>http://netfactory.dk/2008/08/09/php-removing-an-item-from-an-array/comment-page-1/#comment-722</link> <dc:creator>hypnosis.course</dc:creator> <pubDate>Thu, 19 Mar 2009 15:11:12 +0000</pubDate> <guid
isPermaLink="false">http://netfactory.dk/?p=289#comment-722</guid> <description>As of yet, PHP does not provide an ‘official’ way of removing an array element which is not guaranteed to be at the start or end of the array.&lt;br&gt;&lt;br&gt;So, after a bit of searching around I found this novel way of removing an element from an array by its value(s) using PHPs array_diff function</description> <content:encoded><![CDATA[<p>As of yet, PHP does not provide an ‘official’ way of removing an array element which is not guaranteed to be at the start or end of the array.</p><p>So, after a bit of searching around I found this novel way of removing an element from an array by its value(s) using PHPs array_diff function</p> ]]></content:encoded> </item> <item><title>By: hypnosiscourse</title><link>http://netfactory.dk/2008/08/09/php-removing-an-item-from-an-array/comment-page-1/#comment-669</link> <dc:creator>hypnosiscourse</dc:creator> <pubDate>Thu, 19 Mar 2009 15:11:12 +0000</pubDate> <guid
isPermaLink="false">http://netfactory.dk/?p=289#comment-669</guid> <description>As of yet, PHP does not provide an ‘official’ way of removing an array element which is not guaranteed to be at the start or end of the array.&lt;br&gt;&lt;br&gt;So, after a bit of searching around I found this novel way of removing an element from an array by its value(s) using PHPs array_diff function</description> <content:encoded><![CDATA[<p>As of yet, PHP does not provide an ‘official’ way of removing an array element which is not guaranteed to be at the start or end of the array.</p><p>So, after a bit of searching around I found this novel way of removing an element from an array by its value(s) using PHPs array_diff function</p> ]]></content:encoded> </item> <item><title>By: eq2 plat</title><link>http://netfactory.dk/2008/08/09/php-removing-an-item-from-an-array/comment-page-1/#comment-668</link> <dc:creator>eq2 plat</dc:creator> <pubDate>Tue, 11 Nov 2008 17:08:50 +0000</pubDate> <guid
isPermaLink="false">http://netfactory.dk/?p=289#comment-668</guid> <description>Correct, you could use array_diff() to delete an element if you know what the elements are that you are deleting. I chose to use an array_filter() though because you can do conditional deleting. For example, you can delete it only if it’s not numeric or if it’s greater than 5 characters.&lt;br&gt;&lt;br&gt;You can’t perform conditional deletes using an array_diff() but it is a simple way to delete items you do know the value.. Thanks for another quick way to delete an item from an array in php.</description> <content:encoded><![CDATA[<p>Correct, you could use array_diff() to delete an element if you know what the elements are that you are deleting. I chose to use an array_filter() though because you can do conditional deleting. For example, you can delete it only if it’s not numeric or if it’s greater than 5 characters.</p><p>You can’t perform conditional deletes using an array_diff() but it is a simple way to delete items you do know the value.. Thanks for another quick way to delete an item from an array in php.</p> ]]></content:encoded> </item> </channel> </rss>
<!-- This site's performance optimized by W3 Total Cache. Dramatically improve the speed and reliability of your blog!

Learn more about our WordPress Plugins: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)
Database Caching 6/14 queries in 0.009 seconds using disk

Served from: m00.opasia.dk @ 2010-03-13 13:50:05 -->