From:             
Operating system: ubuntu 10.04
PHP version:      5.2SVN-2010-09-14 (SVN)
Package:          Strings related
Bug Type:         Bug
Bug description:function implode can't do well with character '&'

Description:
------------
<?php

$array = array('lastname', 'email', 'phone');

$comma_separated = implode('&',$array);

echo strlen($comma_separated);

echo $comma_separated;

?>

Expected result:
----------------
web should print this:

20lastname&email&phone

Actual result:
--------------
web just print this:

20lastname&email

-- 
Edit bug report at http://bugs.php.net/bug.php?id=52837&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=52837&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=52837&r=trysnapshot53
Try a snapshot (trunk):              
http://bugs.php.net/fix.php?id=52837&r=trysnapshottrunk
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=52837&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=52837&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=52837&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=52837&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=52837&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=52837&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=52837&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=52837&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=52837&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=52837&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=52837&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=52837&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=52837&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=52837&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=52837&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=52837&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=52837&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=52837&r=mysqlcfg

Reply via email to