Posted by Toby A Inkster on 05/18/07 08:45
jmark wrote:
> I have seen some code like
> $value = strval($REQUEST['value']);
>
> I would like to know what is the use of strval here since $_REQUEST
> values are strings?
It may just be for readability -- anyone skimming through the code could
instantly see that $value is intended to be a string, and not, say, an
integer.
--
Toby A Inkster BSc (Hons) ARCS
http://tobyinkster.co.uk/
Geek of ~ HTML/SQL/Perl/PHP/Python/Apache/Linux
Navigation:
[Reply to this message]
|