RE: [PHP] Formatting an ECHO statement.
| From: | Tommy Pham | Date: | Mon, 18 Oct 2010 10:55:37 +0000 |
| Subject: | RE: [PHP] Formatting an ECHO statement. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-308786@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Shreyas Agasthya [mailto:shreyasbr@gmail.com]
> Sent: Monday, October 18, 2010 3:10 AM
> To: PHP General List
> Subject: [PHP] Formatting an ECHO statement.
>
> Team,
>
> A bit of silly one but like my book says, there are no dumb questions, I
am
> asking it here.
>
> If I have :
>
> $other="Whatever";
>
> and I do:
>
> echo 'Other Comments:' .$other. '<br/>
echo 'Other Comments:<i>' .$other. '</i><br/>';
>
> works perfectly well and prints the value. What if I want to, now,
italicize
> the value of $other with the above syntax? How do I achieve it?
>
> I know we can do it this way : echo " I am <i>$other</i>"; but I want to
learn
> how to do it with the above syntax like I mentioned earlier.
>
> Regards,
> Shreyas Agasthya