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 finding hacking loopholes
i was attacked by a redirect php injection

my pc is clean of viruses

so i figure that

line breaks in between fetched file names
Hi,

I have this code:
Code: <?php
if($dir = opendir('files')){
while (($f

Preventing blank or already entered values
Im trying to learn how to place a read file line by line and prevent duplicate entries and also BLAN

Form File Upload
I've read through tons of resources and tutorials and as far as I can tell, my code is accurate, but

update the selected existing records of database
Hi frndz,
I am new to php and get stuck....

Edit.php > Update.php > Updatea

query based on 2 conditions
I want to select if the doc_type is either s OR f but this doesn't work:

Code: [Select]$query

article site help remaining text
Hi all hope you will be fine
I am creating a article site in this site i want to put some text on

returning data from an ssh2_exec()
here's what i got.


$conn = ssh2_connect($this->_host);
ssh2_auth_password($c

Getting number of affected rows in SQLPLUS..
Hi everyone,
I have a shell script where i am invoking sqlplus, running a query and saving t

Scene graph using Direct3D?
There are several C++ scene graph based packages available for OpenGl, like say OSG,

http://w

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