php - Unused variable warning (editor) array_walk -


following code generates editor warning not using $key in code. idea how avoid warning? there similar check done php parses too?

array_walk($services, function(&$value, $key) {     $value = str_replace('xxx', '', $value); }); 

just remove it.

array_walk($services, function(&$value) {     $value = str_replace('xxx', '', $value); }); 

but note it's editor warning, it's not php warning.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -