Help. I'm new to php. I wrote a function that did not seem to work so
I checked whether the parameter I was passing to the function was
actually being used. I found that it wasn't. When I run the following
code I get:
Testcheck:
and nothing else. It seems that the variable is not being passed to
the function. Here is the code:
function file_write_posi tion($textcheck ) {
print "Testcheck: " . $testcheck . "<br>\n\n";
return;
}
$testcheck="# Test Call Area";
file_write_posi tion($testcheck );
What am I doing wrong??
A
I checked whether the parameter I was passing to the function was
actually being used. I found that it wasn't. When I run the following
code I get:
Testcheck:
and nothing else. It seems that the variable is not being passed to
the function. Here is the code:
function file_write_posi tion($textcheck ) {
print "Testcheck: " . $testcheck . "<br>\n\n";
return;
}
$testcheck="# Test Call Area";
file_write_posi tion($testcheck );
What am I doing wrong??
A
Comment