NYCPHP Meetup

NYPHP.org

[nycphp-talk] single quote vs. double quote

Jiju Thomas Mathew lists at silmail.com
Wed Apr 4 22:36:36 EDT 2007


>
>
> Wouldn't I rather do the following anyway?
> $logfile_name=$year."_".$month."_".$day."_logfile.txt";
>
> I would never have gotten the idea to do this the way you described.
> Concatenation of the strings is IMHO way easier to comprehend, at least
> for me and maybe even for PHP.
>
>
Hi David

I would prefer the following anyway?
$logfile_name = $year . '_' . $month . '_' . $day . '_logfile.txt';

-- 
Jiju Thomas Mathew
http://www.php-trivandrum.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20070405/e1c14249/attachment.html>


More information about the talk mailing list