We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Problem zephir variable

Hi all My problem, when I compile zephir, then an error appeared, double cannot be assigned to array offset:

   int i;
   var v, x;
   let v=[],i =1,x=8.5;
   while i < 10{
     let v[i]= x*x*4.6;
 }

How to set value array via value double? Thank all



58.4k
Accepted
answer
edited Mar '14

If use

    let v[i]= x*x*7/2;

That is working