say you've got 2 arrays á la $arr1 = Array();
you've added some content to both and now you want to replace one's content with the other's (so as to have 2 identical arrays)
will this work?
$arr1 = $arr2;
or do you have to first delete the content of $arr1 and then add each element of $arr2 individually?
quick and basic question about arrays
Moderator: General Moderators
Re: quick and basic question about arrays
$arr1 = $arr2;
will work. it will replace your old value.
will work. it will replace your old value.