0

Are strings immutable, like in Java?

Well, I think no description is needed :)

28th Nov 2016, 7:46 AM
Maxi
2 Réponses
+ 4
Yes, string is treated as an array of constant characters. But you can change them. using some function like strstr str_replace etc. or self define function or code. But why did you ask that I did not seeing any question.
28th Nov 2016, 8:37 AM
Aditya kumar pandey
Aditya kumar pandey - avatar
+ 1
Thanks for your swift reply! I was just wondering. ;)
28th Nov 2016, 9:13 AM
Maxi