function shrinktheweb_getArrayValue in ShrinkTheWeb 7
Same name and namespace in other branches
- 8 shrinktheweb.api.inc \shrinktheweb_getArrayValue()
- 6 shrinktheweb.api.inc \shrinktheweb_getArrayValue()
Safe method to get the value from an array using the specified key
File
- ./
shrinktheweb.api.inc, line 591
Code
function shrinktheweb_getArrayValue($aArray, $sKey, $isReturnSpace = false) {
if ($aArray && isset($aArray[$sKey])) {
return $aArray[$sKey];
}
// If returnSpace is true, then return a space rather than nothing at all
if ($isReturnSpace) {
return ' ';
}
else {
return false;
}
}