PHP 4.0 Bug #2333 Updated: array_walk & echo troubles.
| From: | Bug Database | Date: | Mon, 20 Sep 1999 16:37:25 +0000 |
| Subject: | PHP 4.0 Bug #2333 Updated: array_walk & echo troubles. | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-11106@lists.php.net to get a copy of this message | ||
ID: 2333
Updated by: riffraff
Reported By: maycat@odessa.net
Status: Closed
Bug Type: Scripting Engine problem
Assigned To:
Comments:
try to submit a source code in which array_walk doesn't work.
are you sure, you RETURN the value from m_l() function and don't echo it?
if you have:
function fnc($a) {
echo $a;
}
and write
echo "first ".fnc("second")." third";
then output stating "secondfirst third" is right. instead of echo $a,
i should have used return to get "first second third".
it's just the way how it works.
Full Bug description available at: http://bugs.php.net/?id=2333