i set a variable while im in a function, but it does not keep its value
when returning to the place the function was called. is this something to
do with register_globals being off? is there anyway i can make the
variable keep its value when returning to the code where it branched from?
TIA (again)
function textsearch($the_items_description){
$pos = strpos($the_items_description, $search_for);
if ($the_items_description == "") {
$does_contain_text = true;
} else {
if ($pos === false) {
$does_contain_text = false;
} else {
$does_contain_text = true;
}
}
echo ("before leaving <BR>");
echo ("$does_contain_text");
echo ("<br>");
}