I have the following piece of code :
the loop will only execute once when $slashcount starts equal to $i. Any other value (smaller or larger) and the loop doesn't even execute once. I've checked php.net and etc with no luck, can anyone see the problem?
Code:
for ($i = 1; $i == $slashcount; $i++) {
$extrapath .= "..f";
echo $extrapath.'<br>'.$i.'<br>';
}
the loop will only execute once when $slashcount starts equal to $i. Any other value (smaller or larger) and the loop doesn't even execute once. I've checked php.net and etc with no luck, can anyone see the problem?