Still trying to nut this out, found something that may be interesting ...
I’ve been going back to using my LowerCase snippet in an attempt to figure out what’s happening.
Thought I’d see if I could get other PHP functions to work, so tried this just to see what happened:
<?php
//return strtolower($input);
return strtolower($input) . '|' . strlen($input) . '|' . strtoupper($input) . '|' . strrev($input);
?>
And got some very funny-looking output ...
<li><a id="muHome|13||]]eltit.fw+eltit.fw+eltit.fw+eltit.fw+eltit.fw+[[" href="index.php?id=5" title="Contact"><span>Contact</span></a></li>
Seems like the first use of $input (strtolower) retrieves the first wf.title, but does not transform it to lowercase.
The second use (strlen) retrieves the length of [[+wf.title]], NOT the length of the real value (e.g. Home, Contact, etc).
The third use (strtoupper) just gives a blank value.
The fourth use (strrev) seems to be reversing the string ’[[+wf.title+wf.title+wf.title+wf.title+wf.title]]’ which is really strange as it looks to have repeated ’+wf.title’ for each of my menu items. Huh??
Someone please tell me what I am doing that’s so horribly wrong ...