Jump to content

String Concatenation


akienghie09

Recommended Posts

Hi!, This is my sample part of my program.. $row['name'].",". $row['region'].",". $row['city'].",". $row['area'].",". $row['street'].",". $row['building'].",". $row['totalorders'].",". $row['totalgross'].","."<br>"; that the output is like this...name, region, city, area, street, building, totalorders, totalgross the output that I need is like this.."name","city","area","street","building","totalorders","totalgross", can you help me how can I make this output..?thanks and have a great day ahead! :)

Link to comment
Share on other sites

Personally, I like to use the extra brackets around variables that are in strings, makes them easier to read: $str = "'{$row['name']}', '{$row['region']}', '{$row['city']}'";

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...