marain
02-10-2021, 04:06 PM
$bigData: 210210083045*68.197.65.57*10*2****210210083303*107.77.225.115*9*1****
The code:
$lineItem = explode ("*", $bigData); // create array
foreach ($lineItem as $item) {
echo "Item = " . $item . "<br />";
The result:
Item = 210210083045
Item = 68.197.65.57
Item = 10
Item = 2
Item =
Item =
Item =
Item = 210210083303
Item = 107.77.225.115
Item = 9
Item = 1
Item =
Item =
Item =
Item =
The problem: The last result set when I run this script has four blank Items. Every other result set has three. Just trying to figure out why the last result set is treated differently.
https://www.marainlaw.com/page.php?here=reviewActivity shows inputs and outputs.
Knowing that the script is doing what it's doing, I've developed a workaround, so the added blank Item on the last set is not holding me back. So now it's just a matter of curiosity.
Thank you all for your patience with my recent spate of questions.
The code:
$lineItem = explode ("*", $bigData); // create array
foreach ($lineItem as $item) {
echo "Item = " . $item . "<br />";
The result:
Item = 210210083045
Item = 68.197.65.57
Item = 10
Item = 2
Item =
Item =
Item =
Item = 210210083303
Item = 107.77.225.115
Item = 9
Item = 1
Item =
Item =
Item =
Item =
The problem: The last result set when I run this script has four blank Items. Every other result set has three. Just trying to figure out why the last result set is treated differently.
https://www.marainlaw.com/page.php?here=reviewActivity shows inputs and outputs.
Knowing that the script is doing what it's doing, I've developed a workaround, so the added blank Item on the last set is not holding me back. So now it's just a matter of curiosity.
Thank you all for your patience with my recent spate of questions.