From: Arlo L. <ar...@ar...> - 2009-02-20 23:28:37
|
> "If delimiter contains a value that is not contained in string , then > explode() will return an array containing string" > > So, since your string doesn't contain a "|" is returns the "array" of an > empty string. Make sense? That does make sense -- so PHP is functioning as documented. But does this seem like the right behavior to others? I think it would be the expected behavior if $string is not empty, but if $string is empty, I would expect $array to be empty, too, regardless of the delimiter. Or, if this is a hopeless cause, does anyone have a better workaround than my little conditional check? Thanks! -Arlo _______________________________ Arlo Leach 773.769.6106 http://arlomedia.com |