-
-
Notifications
You must be signed in to change notification settings - Fork 469
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get char from a string #2069
Labels
Comments
A cast char to string workaround: char t;
string test = "test";
let t = test[1];
var s;
let s = (string) t; but it's painful if I want to do I think it works if we do it in the loop, but I have to double-check: int i;
char c;
string test = "test";
for i, c in test {
var_dump(c, test[i]);
} |
@mruz Thank you for the bug report. I'll try to sort out |
And yes, this is related to #1988 |
Jeckerson
added
the
Hacktoberfest
See https://hacktoberfest.digitalocean.com/ for participants details
label
Oct 3, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
zephir
The text was updated successfully, but these errors were encountered: