<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://hotline.ubersoft.org/Sputnik/wiki/skins/common/feed.css?301"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
		<id>http://hotline.ubersoft.org/Sputnik/wiki/index.php?action=history&amp;feed=atom&amp;title=Core_Function_IsSet</id>
		<title>Core Function IsSet - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://hotline.ubersoft.org/Sputnik/wiki/index.php?action=history&amp;feed=atom&amp;title=Core_Function_IsSet"/>
		<link rel="alternate" type="text/html" href="http://hotline.ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_IsSet&amp;action=history"/>
		<updated>2026-05-08T05:35:45Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.17.0</generator>

	<entry>
		<id>http://hotline.ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_IsSet&amp;diff=4852&amp;oldid=prev</id>
		<title>UberFoX: 1 revision</title>
		<link rel="alternate" type="text/html" href="http://hotline.ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_IsSet&amp;diff=4852&amp;oldid=prev"/>
				<updated>2015-06-14T12:37:40Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 12:37, 14 June 2015&lt;/td&gt;
		&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>UberFoX</name></author>	</entry>

	<entry>
		<id>http://hotline.ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_IsSet&amp;diff=4851&amp;oldid=prev</id>
		<title>UberFoX: 1 revision</title>
		<link rel="alternate" type="text/html" href="http://hotline.ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_IsSet&amp;diff=4851&amp;oldid=prev"/>
				<updated>2014-08-11T21:41:06Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 21:41, 11 August 2014&lt;/td&gt;
		&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>UberFoX</name></author>	</entry>

	<entry>
		<id>http://hotline.ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_IsSet&amp;diff=3582&amp;oldid=prev</id>
		<title>UberFoX: /* Remarks */</title>
		<link rel="alternate" type="text/html" href="http://hotline.ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_IsSet&amp;diff=3582&amp;oldid=prev"/>
				<updated>2013-10-03T13:08:05Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Remarks&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 13:08, 3 October 2013&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 33:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 33:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;=== Remarks ===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;=== Remarks ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;minus;&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;A classes __IsSet() function will be called when IsSet() is used on a class.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;A classes __IsSet() function will be called when IsSet() is used on a class &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;if there is no __IsSet() function IsSet() will return true for the class otherwise it will use the return value of __IsSet() and check if that's true&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;=== Example ===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;=== Example ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>UberFoX</name></author>	</entry>

	<entry>
		<id>http://hotline.ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_IsSet&amp;diff=3576&amp;oldid=prev</id>
		<title>UberFoX: Created page with &quot;&lt;pre&gt; IsSet( $variable ) &lt;/pre&gt;  === Description ===  Determine if a variable is set and is not NULL  If a variable has been unset with Unset(), it will no longer be set.  IsSet(...&quot;</title>
		<link rel="alternate" type="text/html" href="http://hotline.ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_IsSet&amp;diff=3576&amp;oldid=prev"/>
				<updated>2013-10-03T01:59:42Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;pre&amp;gt; IsSet( $variable ) &amp;lt;/pre&amp;gt;  === Description ===  Determine if a variable is set and is not NULL  If a variable has been unset with Unset(), it will no longer be set.  IsSet(...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
IsSet( $variable )&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
Determine if a variable is set and is not NULL&lt;br /&gt;
&lt;br /&gt;
If a variable has been unset with Unset(), it will no longer be set.&lt;br /&gt;
&lt;br /&gt;
IsSet() will return FALSE if testing a variable that has been set to NULL.&lt;br /&gt;
&lt;br /&gt;
Also note that a NULL byte (&amp;quot;\0&amp;quot;) is not equivalent to the Sputnik SV NULL type.&lt;br /&gt;
&lt;br /&gt;
If multiple parameters are supplied then IsSet() will return TRUE only if all of the parameters are set.&lt;br /&gt;
&lt;br /&gt;
Evaluation goes from left to right and stops as soon as an unset variable is encountered. &lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&lt;br /&gt;
==== $variable ====&lt;br /&gt;
&lt;br /&gt;
The variable to be checked. &lt;br /&gt;
&lt;br /&gt;
You may add as many variables to be checked as you wish separate them with ,&lt;br /&gt;
&lt;br /&gt;
=== Return Value ===&lt;br /&gt;
&lt;br /&gt;
Success - Returns true.&lt;br /&gt;
&lt;br /&gt;
Failure - Returns false.&lt;br /&gt;
&lt;br /&gt;
=== Remarks ===&lt;br /&gt;
&lt;br /&gt;
A classes __IsSet() function will be called when IsSet() is used on a class.&lt;br /&gt;
&lt;br /&gt;
=== Example ===&lt;br /&gt;
&lt;br /&gt;
A few examples&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;sputnik&amp;quot;&amp;gt;&lt;br /&gt;
$var = '';&lt;br /&gt;
&lt;br /&gt;
// This will evaluate to TRUE so the text will be printed.&lt;br /&gt;
if (isset($var)) &lt;br /&gt;
{&lt;br /&gt;
    echo &amp;quot;This var is set so I will print.\n&amp;quot;;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
// In the next examples we'll use var_dump to output&lt;br /&gt;
// the return value of isset().&lt;br /&gt;
&lt;br /&gt;
$a = &amp;quot;test&amp;quot;;&lt;br /&gt;
$b = &amp;quot;anothertest&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
say isset($a);      // TRUE&lt;br /&gt;
say isset($a, $b); // TRUE&lt;br /&gt;
&lt;br /&gt;
unset ($a);&lt;br /&gt;
&lt;br /&gt;
say isset($a);     // FALSE&lt;br /&gt;
say isset($a, $b); // FALSE&lt;br /&gt;
&lt;br /&gt;
$foo = NULL;&lt;br /&gt;
say isset($foo);   // FALSE&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This also work for elements in arrays: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;sputnik&amp;quot;&amp;gt;&lt;br /&gt;
$a = array ('test' =&amp;gt; 1, 'hello' =&amp;gt; NULL, 'pie' =&amp;gt; array('a' =&amp;gt; 'apple'));&lt;br /&gt;
&lt;br /&gt;
say isset($a['test']);            // TRUE&lt;br /&gt;
say isset($a['foo']);             // FALSE&lt;br /&gt;
say isset($a['hello']);           // FALSE&lt;br /&gt;
&lt;br /&gt;
// The key 'hello' equals NULL so is considered unset&lt;br /&gt;
// If you want to check for NULL key values then try: &lt;br /&gt;
say IsKeySet($a, 'hello'); // TRUE&lt;br /&gt;
&lt;br /&gt;
// Checking deeper array values&lt;br /&gt;
say isset($a['pie']['a']);        // TRUE&lt;br /&gt;
say isset($a['pie']['b']);        // FALSE&lt;br /&gt;
say isset($a['cake']['a']['b']);  // FALSE&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Yet another example&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;sputnik&amp;quot;&amp;gt;&lt;br /&gt;
IsSet($a) # Check if $a is set&lt;br /&gt;
IsSet($a['Test']) # Check if $a (as array) index 'Test' is set&lt;br /&gt;
IsSet($a['Test']['Cat']) # Check if $a (as array) index 'Test' (as array) index 'Cat' is set&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Core Function]]&lt;/div&gt;</summary>
		<author><name>UberFoX</name></author>	</entry>

	</feed>