php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13347 Implode on $foo[] instead of $foo seems to make PHP give up
Submitted: 2001-09-17 10:26 UTC Modified: 2001-10-08 10:41 UTC
From: alester at flr dot follett dot com Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 4.0.6 OS: Solaris 7
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: alester at flr dot follett dot com
New email:
PHP Version: OS:

 

 [2001-09-17 10:26 UTC] alester at flr dot follett dot com
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";

?>

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-09-17 10:33 UTC] hholzgra@php.net
i get
PHP Fatal error:  Cannot use [] for reading in - on line 7

what are your error_reporting settings ?
 [2001-10-08 10:40 UTC] sander@php.net
No feedback. Unable to reproduce. Probably not a bug. Closed.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu May 08 00:01:29 2025 UTC