For Programmers: Free Programming Magazines  


Home > Archive > PHP Programming > December 2004 > Create Page Links









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Create Page Links
knoak

2004-12-26, 8:55 am

Thanks a lot again Pedro.
I only had to adlust a few variables, and
it worked great!!!

Thanks a lot.

I guess that

echo "somthing", $var ,"something else";

equals
echo "somthing".$var."something else";

Or is there a particular reason to use commas?

Thanks anyway, it works great! :D

Greetings knoakske
Pedro Graca

2004-12-28, 8:56 pm

knoak wrote:
> I guess that
>
> echo "somthing", $var ,"something else";
>
> equals
> echo "somthing".$var."something else";
>
> Or is there a particular reason to use commas?


I just happen to like it better.


It feels like I'm printing three things; with the dot operator it feels
like printing one thing only.

The first line, could be translated to english

echo (a constant) and (a variable) and (another constant)

The second line could be

echo (the concatenation a constant and a variable and another constant)

--
Mail to my "From:" address is readable by all at http://www.dodgeit.com/
== ** ## !! ------------------------------------------------ !! ## ** ==
TEXT-ONLY mail to the whole "Reply-To:" address ("My Name" <my@address> )
may bypass my spam filter. If it does, I may reply from another address!
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2010 codecomments.com