php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #100 explode() function doesn't
Submitted: 1998-02-24 10:35 UTC Modified: 1998-02-24 12:51 UTC
From: sbedberg at ucdavis dot edu Assigned:
Status: Closed Package: Other
PHP Version: 3.0b4 OS: WinNT 4.0
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: sbedberg at ucdavis dot edu
New email:
PHP Version: OS:

 

 [1998-02-24 10:35 UTC] sbedberg at ucdavis dot edu
Explode() doesn't seem to be working; have I just been staring
at my code too long??


CODE FRAGMENT:
   ...
   echo "$resourcelist<br>";
   $reslist = explode($resourcelist, ',');
   echo count($reslist), "<br>";

   for ($i=0; $i < count($reslist); $i++) {
      $res_found = odbc_exec($link_id, "select master_id from master where master_id='$reslist[$i]'");
      echo "$i|$reslist[$i]|$res_found<br>";
   ...

OUTPUT IN BROWSER:
   resezfo,kin,dfsg
   1
   0|,|2

MORE VERSION INFO:
   From phpinfo():
      PHP Version 3.0-dev
      Windows95/NT Version compiled with MS VC++ V5

   php.exe: 399872 bytes, 2/11/98, 1:27:58am


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-02-24 12:51 UTC] zeev
explode() here has its arguments mixed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 04:01:28 2024 UTC