B bacon333 Senior member Mar 12, 2003 524 0 0 Dec 21, 2005 #1 I call a function called "formatstr" and it returns a string with a ~ attached to it: $str = formatstr($str); echo $str; The $str is empty, even when I cast it to string. Without the ~ it works. Any ideas?
I call a function called "formatstr" and it returns a string with a ~ attached to it: $str = formatstr($str); echo $str; The $str is empty, even when I cast it to string. Without the ~ it works. Any ideas?
B bacon333 Senior member Mar 12, 2003 524 0 0 Dec 21, 2005 #2 turned out to be an error in recursion somewhere. used a while loop instead, thanks igowerf.