Need The Answers
New member
In my script I have this:
$IDs = "1
2
3
4
5
6
7
8
9
10
11
12
13
16
17
18
22
24";
$IDs = explode("\n", $IDs);
$ID = $IDs[rand(0, count($IDs)-1)];
I didn't think it was working, so I made a separate script and made it echo the $ID. I kept getting stuff like 92, 81, 8178 etc.
I don't want it to do this. I only want the numbers that are listed in the part of the script.
$IDs = "1
2
3
4
5
6
7
8
9
10
11
12
13
16
17
18
22
24";
$IDs = explode("\n", $IDs);
$ID = $IDs[rand(0, count($IDs)-1)];
I didn't think it was working, so I made a separate script and made it echo the $ID. I kept getting stuff like 92, 81, 8178 etc.
I don't want it to do this. I only want the numbers that are listed in the part of the script.