The 1st line inside the function below gives me
this error: "... Undefined variable: search_str ..."
Yet when I substitute the numeral 3 for expr2 - it works!
--------------------------------------------------
function find_more_hits(){
for ($i = 1 ; $i < strlen($search_str) ...
My script reads:
define ("WEEK", $week);
if (defined(WEEK)){
echo "week IS defined.";
}
I never get to the echo; Why is my define failing?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.