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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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: Thu Apr 25 13:01:30 2024 UTC