Quote:
Originally Posted by Arkshine
But if you string is already declared somewhere, you can't copy text directly, you need to use copy().
|
You can, as long as the other string has the same number of elements.
PHP Code:
new g_szString1[] = "txt1"; // 5 elements
new g_szString2[5]; // Or sizeof(g_szString1)
g_szString2 = g_szString1;
g_szString1 = "txt2";
__________________