Is there a way to clear a string content. I dont want to use it exactly on a string but on a string array. Lets say I have
string $array[];
//assign values
$array[0] = "a";
$array[1] = "b";
size($array);
//Result: 2//
Now I want to remove its last element. That is I want it to contain only "a".
So I do
$array[1] = "";
size($array);
//Result: 2//
The size of array is still 2. How to remove the last element?