[PHP] Re: The Context of 0

2007-10-03 Thread Tom Swiss
uot;x equals y" and "x is identical to y", and the implicit type conversions that occur. Novices, study http://www.php.net/manual/en/language.operators.comparison.php http://www.php.net/manual/en/language.types.type-juggling.php until you grok why gives 0 == False 1 == True -1 == True

Re: [PHP] inserting ยด in a db

2007-10-03 Thread Tom Swiss
DB - especially DB_common::quoteSmart() or the more modern http://pear.php.net/package/MDB2 I'm still partial to DB but suppose I will eventually have to move to MDB2. -- Tom Swiss / tms(at)infamous.net / www.infamous.net / www.unreasonable.org "What's so funny about

[PHP] possible GMP bug?

2007-10-01 Thread Tom Swiss
hat's why it doesn't work!", would be greatly appreciated. Thanks! -- Tom Swiss / tms(at)infamous.net / www.infamous.net / www.unreasonable.org "What's so funny about peace, love, and understanding?" - Nick Lowe "Power to the Peacefu

Re: [PHP] strpos error (I'm missing something obvious)

2007-10-01 Thread Tom Swiss
"If needle is not found, strpos() will return boolean FALSE." Checking strpos($foo,$bar) !== False is exactly right; since 0 == False, you want to use !==, not !=. -- Tom Swiss / tms(at)infamous.net / www.infamous.net / www.unreasonable.org "What's so funny abo