Is unset in php is associated with clearstatcache()

I am using unset in php array to delete items in the array

My question is clearstatcache() works after using unset or it is just files?

In my experiment using clearstatcache() after unset fix my warnings or maybe it was not the clearstatcache() that fix those warnings?