Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

array(1 => 'int_key', '1' => 'string_key')

Hi, guys!

Thanks for Zephir! It's fantastiс!

Let me ask you a little question. Is it possible in Zephir to create array like that:

$array =
[
    1   : 'key is int',
    '1' : 'key is string'
];

var_dump($array); # array(int 1 => 'key is int', string '1' => 'key is string')

Thanks a lot, Yakov.



611
Accepted
answer
edited Nov '14

Hi

We use single quotes ' for chars, not for strings

please use "