I have a function which returns a string, which reads as a number. The string is the browser window width. I'm trying to use settype after the function call to change the string into an integer so I can use it to do calculations for div layouts.
A call to settype($width, "integer") changes the value of $width to 0;
e.g.
echo "after settype width = $width";
I don't know why this is happening. If I try to reset the type via
(integer) $width, the value of $width also becomes 0.
Any pointers would be appreciated.
Thanks
B