<?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>Kommentare zu: PHP: Benchmark isset() or array_key_exists() ?</title>
	<atom:link href="http://juliusbeckmann.de/blog/php-benchmark-isset-or-array_key_exists.html/feed" rel="self" type="application/rss+xml" />
	<link>http://juliusbeckmann.de/blog/php-benchmark-isset-or-array_key_exists.html</link>
	<description>Ich bin nicht verrückt, nur technisch begabt ...</description>
	<lastBuildDate>Mon, 30 Jan 2012 16:05:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Von: Nik Tang</title>
		<link>http://juliusbeckmann.de/blog/php-benchmark-isset-or-array_key_exists.html/comment-page-1#comment-1398</link>
		<dc:creator>Nik Tang</dc:creator>
		<pubDate>Mon, 04 Jul 2011 07:32:51 +0000</pubDate>
		<guid isPermaLink="false">http://juliusbeckmann.de/blog/?p=400#comment-1398</guid>
		<description>I have proposed a method by combining the isset() and array_key_exists() so that its performance is very close to isset() while providing the same result as array_key_exists() does.

If you&#039;re interested, just check it out here: http://www.zomeoff.com/php-fast-way-to-determine-a-keyelements-existance-in-an-array/</description>
		<content:encoded><![CDATA[<p>I have proposed a method by combining the isset() and array_key_exists() so that its performance is very close to isset() while providing the same result as array_key_exists() does.</p>
<p>If you're interested, just check it out here: <a href="http://www.zomeoff.com/php-fast-way-to-determine-a-keyelements-existance-in-an-array/" rel="nofollow">http://www.zomeoff.com/php-fast-way-to-determine-a-keyelements-existance-in-an-array/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: MFix</title>
		<link>http://juliusbeckmann.de/blog/php-benchmark-isset-or-array_key_exists.html/comment-page-1#comment-1115</link>
		<dc:creator>MFix</dc:creator>
		<pubDate>Mon, 25 Apr 2011 19:21:21 +0000</pubDate>
		<guid isPermaLink="false">http://juliusbeckmann.de/blog/?p=400#comment-1115</guid>
		<description>You have written: &quot;But i still do not really know why the cast is so slow&quot;.
The answer is pretty simple - not the cast is slow, but error reporting switch is.

Using @ works like:
$tmp = error_reporting();
error_reporting(0);
// do cast
error_reporting($tmp);</description>
		<content:encoded><![CDATA[<p>You have written: "But i still do not really know why the cast is so slow".<br />
The answer is pretty simple - not the cast is slow, but error reporting switch is.</p>
<p>Using @ works like:<br />
$tmp = error_reporting();<br />
error_reporting(0);<br />
// do cast<br />
error_reporting($tmp);</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: nerkn</title>
		<link>http://juliusbeckmann.de/blog/php-benchmark-isset-or-array_key_exists.html/comment-page-1#comment-698</link>
		<dc:creator>nerkn</dc:creator>
		<pubDate>Wed, 04 Aug 2010 07:06:25 +0000</pubDate>
		<guid isPermaLink="false">http://juliusbeckmann.de/blog/?p=400#comment-698</guid>
		<description>I use to check if the value is usable. Null I know from the mysql definition reads “a missing unknown value”. 

If I&#039;m concerning the existance of a value I could surely use isset. If I use keys like an array, the importance is the being there, use array_key_exists is the function.

thanks for benchmarks, I thouht there is huge difference than your results, since one is function, doing many things, and other one is lang construct.


http://dev.mysql.com/doc/refman/5.0/en/working-with-null.html</description>
		<content:encoded><![CDATA[<p>I use to check if the value is usable. Null I know from the mysql definition reads “a missing unknown value”. </p>
<p>If I'm concerning the existance of a value I could surely use isset. If I use keys like an array, the importance is the being there, use array_key_exists is the function.</p>
<p>thanks for benchmarks, I thouht there is huge difference than your results, since one is function, doing many things, and other one is lang construct.</p>
<p><a href="http://dev.mysql.com/doc/refman/5.0/en/working-with-null.html" rel="nofollow">http://dev.mysql.com/doc/refman/5.0/en/working-with-null.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: Julius</title>
		<link>http://juliusbeckmann.de/blog/php-benchmark-isset-or-array_key_exists.html/comment-page-1#comment-432</link>
		<dc:creator>Julius</dc:creator>
		<pubDate>Wed, 19 Aug 2009 20:34:30 +0000</pubDate>
		<guid isPermaLink="false">http://juliusbeckmann.de/blog/?p=400#comment-432</guid>
		<description>Thats correct Caio.
It also explains why array_key_exists is slower than isset.
But i cant fairly remember a scenairo where i would have needed exactly that behaviour only array_key_exists() has.

I checked documentation, it is mentioned there http://php.net/array_key_exists need to look closer next time :D</description>
		<content:encoded><![CDATA[<p>Thats correct Caio.<br />
It also explains why array_key_exists is slower than isset.<br />
But i cant fairly remember a scenairo where i would have needed exactly that behaviour only array_key_exists() has.</p>
<p>I checked documentation, it is mentioned there <a href="http://php.net/array_key_exists" rel="nofollow">http://php.net/array_key_exists</a> need to look closer next time :D</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: Caio</title>
		<link>http://juliusbeckmann.de/blog/php-benchmark-isset-or-array_key_exists.html/comment-page-1#comment-431</link>
		<dc:creator>Caio</dc:creator>
		<pubDate>Wed, 19 Aug 2009 20:00:30 +0000</pubDate>
		<guid isPermaLink="false">http://juliusbeckmann.de/blog/?p=400#comment-431</guid>
		<description>As I posted on Twitter now, the problem is this:

$ php -r &#039;$foo[&#039;bar&#039;]=NULL;var_dump(isset($foo[&#039;bar&#039;]));&#039;

When value is NULL, isset returns FALSE. But it&#039;s set! see?</description>
		<content:encoded><![CDATA[<p>As I posted on Twitter now, the problem is this:</p>
<p>$ php -r '$foo['bar']=NULL;var_dump(isset($foo['bar']));'</p>
<p>When value is NULL, isset returns FALSE. But it's set! see?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

