using Revo version 2.2.4-pl
using PHP 5.2.17
The following code in a snippet returns the text "Home", while I would expect 'home":
The name of the snippet is "pagetitle_to_lower"
(please ignore / and \ around the brackets, can't get to show my thing without - is there a trick to that to)
$str = "[[*pagetitle]]";
$str1 = strtolower($str);
return $str1;
I am calling the shippet with [\[pagetitle_to_lower]] on my rescource.
What am I doing wrong?
I know a work-around /[\[*pagetitle:lcase]], but I would like to know what I am doing wrong in the snippet - the snippet(s) seem to work, for example reversing the function strrev() works fine.
[ed. note: smashingred last edited this post 14 years, 2 months ago.]