ID:               25874
 Updated by:       [EMAIL PROTECTED]
 Reported By:      fire at firepages dot com dot au
-Status:           Open
+Status:           Bogus
 Bug Type:         Variables related
 Operating System: XP
 PHP Version:      4.3.3
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

The trailing comma while unusual is perfectly valid and the code
evaluates correctly.


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

[2003-10-14 22:21:48] fire at firepages dot com dot au

Description:
------------
output from var_export($var,true) has trailing comma so you have to
strip that manually before utilising the returned string.

the manual example shows this behaviour so perhaps its a feature ?

Reproduce code:
---------------
$yaks = array( 'dfdf'=>'a' , 'b' , 'c' , 'd' ) ;
echo '$llama = ' . var_export( $yaks , true ) . ' ;' ;

Expected result:
----------------
$llama = array ( 'dfdf' => 'a', 0 => 'b', 1 => 'c', 2 => 'd' ) ;

Actual result:
--------------
$llama = array ( 'dfdf' => 'a', 0 => 'b', 1 => 'c', 2 => 'd', ) ;


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


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

Reply via email to