i have an array and i want to translate form this
array(3) {
[0]=>
string(3) "tim"
[1]=>
string(5) "laura"
[2]=>
string(3) "mel"
}
to this:
array( "tim", "laura", "mel" );
I already tried
array_keys()
doens't work.
Also
array_push()
I always receive the array with indexes [0], [1], [2].. can anyone help?
EDIT: I have to send this array to an API Call.
When i try hardcoded
$array = array(3) { [0]=> string(3) "tim", [1]=> string(5) "laura", [2]=> string(3) "mel" }
The API will get send an invalid error
If i try
$array = [ "tim", "laura", "mel" ];
i will work.
I also don't the any difference but the API does....