On Wed, July 11, 2007 9:52 am, Stut wrote: >> $needle = (array)$needle; >> >> Conversion to array creates an array with one element... the value >> converted. > > Without raising a notice? Sure looks like it: php -d error_reporting=2047 -r '$foo = (array) "foo"; var_dump($foo);' array(1) { [0]=> string(3) "foo" } But I'd have to say that the intent is not all that clear, really, and I'd be leery of this feature, personally. -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php