Hello, I have a function - which is called menuthml(); - that returns some links in html format.
I would like to assign the RESULT of that function to a variable so that I can susequentially deal with it as if it were a text string.
I have tried this:
$menuhtml = menuhtml();
but something in this approach must be wrong because even though the variable $menuhtml contains what the function would return, if I do something on the variable (for example I tried $menuhtml = str_replace('Biography','<br>',$menuhtml);) and then echo the variable $menuhtml I still see the original function's result, unaffected by my str_replace...
Can anybody suggest a work around? Thanks