<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — get_post() vs check_value()]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=8435&amp;type=atom" />
	<updated>2019-10-06T06:03:17Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=8435</id>
		<entry>
			<title type="html"><![CDATA[get_post() vs check_value()]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=36195#p36195" />
			<content type="html"><![CDATA[<p>The <strong>function get_post($name, $dflt=&#039;&#039;)</strong> is defined in <strong>includes/ui/ui_controls.inc</strong>.<br />The <strong>function check_value($name)</strong> is defined in <strong>includes/ui/ui_input.inc</strong>.</p><p>In the former, a default non zero / non one value / null can be set whereas, in the latter the default value is hardcoded as 0 or 1.</p><p>In the former, <strong>isset()</strong> is used for blank check whilst in the latter an <strong>empty()</strong> check is used.</p><p>Each one uses themselves recursively for arrays.</p><p>Hence in FA, are these two equivalent across PHP versions:<br /><strong>get_post(&#039;tax_included&#039;, 0)</strong><br />and<br /><strong>check_value(&#039;tax_included&#039;)</strong><br />?</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2019-10-06T06:03:17Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=36195#p36195</id>
		</entry>
</feed>
