Skip to main content
Code Review

Return to Answer

replaced http://us1.php.net with https://www.php.net
Source Link

Using in_array in_array can be droped one foreach

$result = array();
foreach ($array['Permission'] as $key => $value) {
 if (in_array($key, $array['Moduleid'])) {
 $result[$key] = $value;
 }
}

Using in_array can be droped one foreach

$result = array();
foreach ($array['Permission'] as $key => $value) {
 if (in_array($key, $array['Moduleid'])) {
 $result[$key] = $value;
 }
}

Using in_array can be droped one foreach

$result = array();
foreach ($array['Permission'] as $key => $value) {
 if (in_array($key, $array['Moduleid'])) {
 $result[$key] = $value;
 }
}
added 1 characters in body
Source Link
Emilio Gort
  • 379
  • 3
  • 14

Using in_array can be droped one foreach

$result = array();
foreach ($array['Permision']$array['Permission'] as $key => $value) {
 if (in_array($key, $array['Moduleid'])) {
 $result[$key] = $value;
 }
}

Using in_array can be droped one foreach

$result = array();
foreach ($array['Permision'] as $key => $value) {
 if (in_array($key, $array['Moduleid'])) {
 $result[$key] = $value;
 }
}

Using in_array can be droped one foreach

$result = array();
foreach ($array['Permission'] as $key => $value) {
 if (in_array($key, $array['Moduleid'])) {
 $result[$key] = $value;
 }
}
Source Link
Emilio Gort
  • 379
  • 3
  • 14

Using in_array can be droped one foreach

$result = array();
foreach ($array['Permision'] as $key => $value) {
 if (in_array($key, $array['Moduleid'])) {
 $result[$key] = $value;
 }
}
lang-php

AltStyle によって変換されたページ (->オリジナル) /