- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 208
 
Open
Description
On PHP, we can instantiate a stdClass and set properties dynamically as follow:
$obj = new stdClass(); $obj->name = 'My Name'; $obj->time = time();
On PeachPie is there a way to do that? I've tried:
dynamic _obj = new stdClass(); _obj.name = "My Name";
But I got the following error:
Unhandled exception. Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: 'Pchp.Core.PhpValue' does not contain a definition for 'name'
Am I missing something?
Metadata
Metadata
Assignees
Labels
No labels