ID: 13347
Updated by: hholzgra
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: Compile Failure
Operating System: Solaris 7
PHP Version: 4.0.6
New Comment:
i get
PHP Fatal error: Cannot use [] for reading in - on line 7
what are your error_reporting settings ?
Previous Comments:
------------------------------------------------------------------------
[2001-09-17 10:26:01] [EMAIL PROTECTED]
Note the implode. $foo[] should be $foo, but PHP doesn't give an error. It just
gives no output. I don't
find anything in my php.err log, either.
#!/usr/local/bin/php -q
<?php
$foo = Array( "This", "That", "The other" );
print "Before the implode\n";
print implode( ",", $foo[] );
print "\n";
print "After the implode\n";
?>
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=13347&edit=1
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]