$base = "bob","bob2";
is incorrect syntax. You either meant
$base = "bob, bob2";
for a string of bob, bob2
or
$base = "bob"."bob2";
for a string of bobbob2
. If you were getting php confused with another code language, you probably meant to create an array, which would be
$base = array(
"bob" => "bob",
"bob2" => "bob2",
);
in php, which could also be better written as
$base = array(
"bob",
"bob2",
);
Click here to see the outputs.
As I see it, the problem is your own php knowledge. Not to sound rude, but it would help to have read some basic books or to look online to see the function of a comma in php. Also, the error tells you the error. There was an unexpected comma!