I am having this PHP code:
for ($i=0; $i < $numberOfCategories; $i++) {
$relatedProduct = echo $categories[$i];
}
What I want to get is to add the value of the variable $i to the variable $relatedProduct. I mean when $i=1,we should have $relatedProduct1