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

Help with email validation please...
Hi,
Please could you help.
I have a register.php login page where users register, the detail

FPDF Help
I've been playing with the FPDF module. I was building a form and rolling right along and then sudde

Batch update record with Pagination
Hoping someone can help me with this issue I'm having, im trying to batch update records from a resu

reorder sql query
ok so i have this very simple code:
Code: $query = "SELECT search_keywords, COUNT(search_key

how to load php class from another domain?
how to load php class from another domain?

Get ID from Database when Posting with a HTML Form
I have a form I am submitting to a MySql database. Each product has an ID # attached to it that auto

need help in dynamic select menu in php
hi i have created a dynamic select menu using php. i have a problem in that which is when the user s

Help: problem with Headers to download PDF file
Hi,

I'm trying to implement a script where when a user clicks a link he gets a PDF file to op

Random Number Generation And Probability
Hello, I am working on a function which has to insert data into a SQL table.

we have to suppl

Retrieving the 25 most recently added entries from all tables in a MySQL databas
Hello,

The code below works great. It creates a table that shows the 25 most recently added t

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