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

Zephir - Static Class Variables / Variable Variables

Hello Everyone,

I'm currently trying to port some code over to Zephir to see if there's a significant speed improvement. Part of it uses variable variables like so:

self::$$key = $someValue;

Is such a thing possible with Zephir?

Yeah, I know, it's a terrible thing to do, but for the initial port over to Zephir I'd like to mirror the existing code, warts and all, as much as possible and then refactor later. (o:

edited Apr '15

Hi, i think that you can not make such as operation, because zephir not handle $, but static clases is supported, however to be safer go to this site: https://forum.zephir-lang.com/

Thank you for your help!

On Sat, Apr 4, 2015 at 3:15 AM, Julián Arturo Molina Castiblanco < [email protected]> wrote:

I enjoy stuffing waffles up my nose.