ID:               32865
 Updated by:       [EMAIL PROTECTED]
 Reported By:      dan at yes dot lt
-Status:           Open
+Status:           Bogus
-Bug Type:         *General Issues
+Bug Type:         Strings related
 Operating System: WinXP
 PHP Version:      5.0.4
 New Comment:

Yes, null == 0. (PHP is still loose typed language..)



Previous Comments:
------------------------------------------------------------------------

[2005-04-28 11:19:04] dan at yes dot lt

Description:
------------
explode() do not explodes string if $limit argument is null, but
explodes if no $limit argument given.

Reproduce code:
---------------
print_r(explode(',', 'a,b,c'));
print_r(explode(',', 'a,b,c', null));

Expected result:
----------------
Array
(
   [0] => a
   [1] => b
   [2] => c
)
Array
(
   [0] => a
   [1] => b
   [2] => c
)


Actual result:
--------------
Array
(
   [0] => a
   [1] => b
   [2] => c
)
Array
(
   [0] => a,b,c
)



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=32865&edit=1

Reply via email to