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
 [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

Pull Requests

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 Dec 21 14:01:32 2024 UTC