Wappler 5.2.3
NodeJS
Can’t access characters of strings by index
Wappler 5.2.3
NodeJS
Can’t access characters of strings by index
Not sure what are you reporting here as a bug, but what exactly do you expect to be returned from this expression?
$_POST.some_form_value[0]
Well, you can access arrays by their index (e.g.: query[0].name), but you can’t do the same for strings. This is the behaviour in Javascript:
In this case, to get the first character. I’m unsure if this is a bug or a deliberate decision during the making of your parser/lexer
No, you can’t use this for strings. You can access arrays by index.
Moved to feature requests. Same behaviour in PHP