Trouble with arrays
- by Ockonal
Hi guys, I have such string in PHP:
$data = '1;3;5;7;9';
And cycle:
for ($i=0; $i < count($someArray); $i++)
{
// If $i == any number in $data
}
What is the faster way to compare $i from cycle with numbers in string. I have to check that cycle-counter is in string.