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,

276 Like 15 Dislike
Previous php-forum Next php-forum
Other php-forum

Web Host List
Here is a list of web hosts that offer PHP and MySQL. It is no where near a full list, but it is mos

Passing vars to the DB
I have 3 small testing tables:

ID TYPE
1 pepperoni
2 C. bacon
3 taco

ID TY

Strange HTML Tag?
I recently noticed some odd HTML appear in some of the websites I host. Not all of them are run on a

Displaying Column Names
I have a question regarding the ability to show the column names from my table/query.
What I'm lo

Date Format
Hi there,

I have a date format like this right now:
Sat, 17 Oct 2009 17:04:00

I ne

Converting from one format to another
"I have got a date in DD/MM/YYYY but I need it in MM-DD-YYYY. Help!"

Request-URI Too Large
I have created a simple submit form for a mysql database that puts a piece of code into database.<

modifying query string with no page refresh
Hi everybody,
I've tried to get info about my problem all over the internet but i didn't find out

ob_ dynamic content
i was wondering about the potential to use ob to create a <div then remove it when the page

Email Script does not reach destination
Hey Guys look at this code snippet :
Code:
//read a line from the file

$myFile = "

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