ID:               27230
 Updated by:       [EMAIL PROTECTED]
 Reported By:      ntunali at isbank dot net dot tr
-Status:           Open
+Status:           Bogus
 Bug Type:         Scripting Engine problem
 Operating System: win98
 PHP Version:      4.3.4
 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

You're echoing the return value of print_r() which prints to stdout
itself.


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

[2004-02-12 12:22:02] ntunali at isbank dot net dot tr

Description:
------------
in line echo ....... 



Reproduce code:
---------------
function split_post()

{

        $fields=array_keys($_POST);

        foreach($fields as $key => $field)

                echo $key.'-'.print_r(split("_",$field)).'<br>';



        return $fields;

}

Expected result:
----------------
I think, result must be

0-Array ( [0] => usergroup )

1-Array ( [0] => position )

2-Array ( [0] => menukeyw [1] => 34 )

:

:

:

Actual result:
--------------
Array ( [0] => usergroup ) 0-1

Array ( [0] => position ) 1-1

Array ( [0] => menukeyw [1] => 34 ) 2-1

Array ( [0] => task [1] => 34 ) 3-1

Array ( [0] => visible [1] => 34 ) 4-1

Array ( [0] => menukeyw [1] => 35 ) 5-1

Array ( [0] => task [1] => 35 ) 6-1

Array ( [0] => visible [1] => 35 ) 7-1

Array ( [0] => menukeyw [1] => 36 ) 8-1

Array ( [0] => task [1] => 36 ) 9-1

Array ( [0] => visible [1] => 36 ) 10-1

Array ( [0] => menukeyw [1] => 37 ) 11-1

Array ( [0] => task [1] => 37 ) 12-1


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


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

Reply via email to