Jump to content

[SOLVED] Concatenate help


psychowolvesbane

Recommended Posts

Your syntax is wrong, this is correct:

 

$CampusID = "Campus " . $NumberOfRecords+1;

or

$CampusID = "Campus" . " " . $NumberOfRecords+1;

 

. (dot) is used to join strings and variables together so the correct syntax is like:

 

$new string = "string" . "anotherstring" . $variable . "yet another string" . $andavariable;

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.