|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-06-17 09:49 UTC] helly@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 12:00:01 2025 UTC |
Description: ------------ The explode() function will not properly separate strings that are separated by plus signs (+). It will put all of the string into the first array element separated by spaces. Reproduce code: --------------- $toExplode = "1+1+1+1"; $exploded = explode("+", $toExplode); foreach($exploded as $e) { echo "Bug: ".$e."<br />"; } Expected result: ---------------- Bug: 1 Bug: 1 Bug: 1 Bug: 1 Actual result: -------------- Bug: 1 1 1 1