PHP for() loop, naming a variable

Is there a way to name the $details_0, $details_1, etc in this?
I don’t want to make it an array ie: $details[1]


        for ($i = 0; $i < 5; $i++)
        {
            $details_$i = 1
            echo $details_$i;
         }

I had tried $details_{$i}

${“details$i”}

You should make it an array.
Just try it. Arrays aren’t that scaring :slight_smile: