I know that at least in vb script this would be done like:
x = "Me and" & dog_name & " are going to the beach together today."
but it doesnt seem to work in php. This is the actual function that I am doing right now:
function format_phone($number) {
if (strlen($number) == 10) {
$result = "(" + substr($number,0,3) + ") " + substr($number,3,3) + "-" + substr($number,6,4);
return $result;
}
else {
return "N/A";
}
}
Its a function to convert the 10 digit phone number in my database to something that is a little more visualy appealing.