Utilizing .NET object with multiple array operators
Posted: January 2nd, 2016, 3:47 pm
Hi there,
In my project I encounter a .NET object containing multiple array operators:
When trying to convert this object using php/phalanger, I always end up with the second operator being triggered; when I perform var_dump(array_keys($obj)) this yields numeric keys only.
How can I trigger the first operator instead of the second?
In my project I encounter a .NET object containing multiple array operators:
- Code: Select all
public virtual Object this[string fieldName]
public virtual Object this[int fieldIndex]
When trying to convert this object using php/phalanger, I always end up with the second operator being triggered; when I perform var_dump(array_keys($obj)) this yields numeric keys only.
How can I trigger the first operator instead of the second?