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 -

android - IBM Worklight 6.1 [Application Error] There was a network error (file:///android_asset/www/index.html) -