Re: newbie: question about question marks

From: Date: Tue, 09 Jul 2002 13:58:50 +0000
Subject: Re: newbie: question about question marks
Groups: php.general 
Request: Send a blank email to php-general+get-106360@lists.php.net to get a copy of this message
In that case, the question marks are part of the PHP opening and closing tags. There are several ways to open and close sections of PHP script, mainly being <?php ?>, <? ?>, and <% %>. What the below equals is <?php echo $parent; ?>, since <?= is the equivalent of saying "echo" or "print" the following. Hope that wasn't too jumbled. :o) Martin Clifford http://www.completesource.net (Now Open!) >>> "Alexander Ross" <alexross@bleen.net> 07/09/02 09:54AM >>> How bout the question marks in the following line of php generated html: <input type = hidden name = parent value = <?=$parent;?> what do they mean? "Miguel Cruz" <mnc@stoic.net> wrote in message news:Pine.LNX.4.44.0207072139290.29387-100000@stoic.net... > On Sun, 7 Jul 2002, Alexander Ross wrote: > > Can someone explain to me what the ? does. I have a vague idea of what > > it means in a URL (please cearify that) but I haven't the slightest what > > it means in php code. Thanks for your help > > Read about the ternary operator at: > > > http://www.php.net/manual/en/language.operators.comparison.php > > miguel > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#106360) next »