quick basic question, hopefully not dumb


Posted on 16th Feb 2014 07:03 pm by admin

I don't know how to search for this, so forgive me if it's been covered...

I often see an example like this:
$a = $b . " " . $c; // concatenate strings with space

I'm wondering if there is something wrong with this method:
$a = "$b $c";

I can see that maybe the 1st method is more clear as to intention, but I'm not sure if it's really worth the extra trouble. What do you guys think?

Thanks,

No comments posted yet

Your Answer:

Login to answer
276 Like 15 Dislike
Previous forums Next forums
Other forums

column name cancatenation within PL/SQL
I have a PLSQL store procedure, and the following statement is part of a subquery
fname||lnam

listing help
Hi,

at first, great new design!!! I like it,

i got a problem,

I want to list so

cstdatomic (c++0x std::atomic) / g++ 4.4
Hello,

I'm trying to use cstdatomic (std::atomic in the upcoming c++0x standard) in g++

registration form
first time posting. did some searches but didnt find exactly what i am looking for. dont flame cause

Add 5 to a variable when a button is clicked, and re-run a for loop
So I'm making a feedback sort of section on a website with MySQL and PHP, I've gotten the script to

PHP not creating file.
Its supposed to create a .ini file in the /scriptfiles/users/ with the name they entered into the fi

CHECH A STRING FOR ' " ' (DOUBLE QUOTES)
I am checking for delimiter (.!?) and if there is a " after a sentence then it should neglect a

Basic Forum Tutorial
Hi, I'm new to PHP. I want to build a basic forum for my site using PHP and MySQL. I've searched t

read integers that returns a negative or prints the average
Im trying to finish this homework assignment by tommarow afternoon and I keep getting stuck.
Wr

php redirecting
i wont open a new thread but i have a question about redirecting....
i wonder why my code doesnt

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash