Re: PHP version of ColdFusion CFParam
| From: | Chris Shiflett | Date: | Sun, 02 Feb 2003 20:21:05 +0000 |
| Subject: | Re: PHP version of ColdFusion CFParam | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-134039@lists.php.net to get a copy of this message | ||
--- Lon Lentz <lonl@eximpact.com> wrote:
> Is there a PHP version of the ColdFusion tag <CFParam>?
It has been a while since I wrote CF, but I believe
<cfparam> just does the same thing as something like this:
<cfif not isdefined("variables.foo")>
<cfset variables.foo = "default">
</cfif>
The PHP equivalent of this example is:
if (!isset($foo))
{
$foo = 'default';
}
Chris