On 9/30/06, Joe Ruby MUDCRAP-CE <joeat303 / yahoo.com> wrote:
> Hmm, what's the difference? IIRC, PHP's docs referred to (int)$stringvar
> as casting, which seems the same as to_s, to_i, etc.

PHP is not to be taken as an authority on anything. Especially Ruby.

(int)$stringvar is casting. stringvar.to_i is *conversion*. The
automatic handling of such conversion is called coercion.

-austin
-- 
Austin Ziegler * halostatue / gmail.com * http://www.halostatue.ca/
               * austin / halostatue.ca * http://www.halostatue.ca/feed/
               * austin / zieglers.ca