Looks like you have a type with fullstop in front of the equals sign. Should be = $msg;