[thelist] PHP - strings and integers

Lachlan Cannon luminosity at members.evolt.org
Tue Apr 9 00:49:01 CDT 2002


Hans Zaunere said:
>
> I've seen a lot of posts trying to answer this is a lot of wierd ways.
> This is a trivial problem.  You must read how PHP handles variables:
>
> http://www.php.net/manual/en/language.types.type-juggling.php
>
http://www.php.net/manual/en/language.types.integer.php#language.types.integer.casting>
> and really you should read these, since you're even asking this
> question:
> http://www.php.net/manual/en/language.types.php
> http://www.php.net/manual/en/ref.variables.php
>
> Hans Z.
> New York PHP
> http://nyphp.org

I did read all of them. The problems are with the way it juggles things.
Luckily there is the is_numeric function, because that's exactly what I need
to check.


Lach





More information about the thelist mailing list