new to functions

I want a function with the parameters of text label and data to display, so that I can just call a function like this:
showme(the value is, myvariable)

void showme(string, int)
{
serialprint("string")
serialprintln(int)
}

If sometime this second parameter value is a BYTE or long or float, wont that matter?
Also, I get an error - this function has to be declared somehow? I tried:
string = 'mystring';
myint = 0;
declared up before setup

Thanks!

You need to name the "string" and the "int".

void showme(char* string, int a)
{
Serial.print(string);
Serial.println(a);
}
string = 'mystring';

You need to give string a type, and use double quotes, not singles.

char* string = "mystring";