[thelist] Multiple PHP Varialbes and Single Quote Syntax Question
Juha Suni
juha.suni at sparecom.fi
Mon Dec 4 03:13:21 CST 2006
Jono wrote:
> Would this work?:
>
> <? if ($filename=='cool-site.php')
> {$parent = 'cool-site.php'; && $thisPage = 'Cool Site'; &&
> $PageHeader = 'Cool Site Header Text Here'; }
<?php
if ($filename=='cool-site.php')
{
$parent = 'cool-site.php';
$thisPage = 'Cool Site';
$PageHeader = 'Cool Site Header Text Here';
}
Also see http://fi2.php.net/switch, which is better for this kind of stuff
where you have lots of similar if-clauses.
--
Suni
More information about the thelist
mailing list