php3-list | 2000051
Date: 05/02/00
- Next message: Jonatan Bagge: "Re: [PHP3] Include directory listing"
- Previous message: Jonathan Puls: "RE: [PHP3] MySQL SELECT_DATE output problem within loop"
- In reply to: Trond Håvard Hanssen: "[PHP3] Re: "file upload" on NT"
- Next in thread: Richard Chauvaux: "Re: [PHP3] array_walk errors"
- Reply: Richard Chauvaux: "Re: [PHP3] array_walk errors"
- Maybe reply: Jorge Ruben Macias: "RE: [PHP3] array_walk errors"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
im having aproblem when using array_walk with php 3.0.16 (win98)
eg consider an example taken right out of the manual (pdf verison):
<?php
$fruits = array("d"=>"lemon","a"=>"orange","b"=>"banana","c"=>"apple");
function test_print( $item2, $key ) {
echo "$key. $item2<br>\n";
}
array_walk( $fruits, 'test_print' );
?>
what i get is:
Warning: Missing argument 2 in call to test_print() in
E:\Internet-Junk\homepage\dazweb\test.php3 on line 6
. lemon
Warning: Missing argument 2 in call to test_print() in
E:\Internet-Junk\homepage\dazweb\test.php3 on line 6
. orange
Warning: Missing argument 2 in call to test_print() in
E:\Internet-Junk\homepage\dazweb\test.php3 on line 6
. banana
Warning: Missing argument 2 in call to test_print() in
E:\Internet-Junk\homepage\dazweb\test.php3 on line 6
. apple
ive tried " instead of ' with the same effect.
any ideas?
-- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribe <email protected> To subscribe to the digest, e-mail: php3-digest-subscribe <email protected> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Jonatan Bagge: "Re: [PHP3] Include directory listing"
- Previous message: Jonathan Puls: "RE: [PHP3] MySQL SELECT_DATE output problem within loop"
- In reply to: Trond Håvard Hanssen: "[PHP3] Re: "file upload" on NT"
- Next in thread: Richard Chauvaux: "Re: [PHP3] array_walk errors"
- Reply: Richard Chauvaux: "Re: [PHP3] array_walk errors"
- Maybe reply: Jorge Ruben Macias: "RE: [PHP3] array_walk errors"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

