internal static PhpArray ArrayReplaceImpl(PhpArray array, PhpArray[] arrays, bool recursive)
{
PhpArray result = array.DeepCopy();
if (arrays != null)
{
for (int i = 0; i < arrays.Length; i++)
{
ArrayReplaceImpl(result, arrays[i], recursive);
}
}
//// if called by PHP language then all items in the result should be in place deeply copied:
//result.InplaceCopyOnReturn = true;
return result;
}