| | |
| | | |
| | | |
| | | /** |
| | | * Remove slash at the end of the string |
| | | * Remove slashes at the end of the string |
| | | */ |
| | | function unslashify($str) |
| | | { |
| | | return preg_replace('/\/$/', '', $str); |
| | | return preg_replace('/\/+$/', '', $str); |
| | | } |
| | | |
| | | |
| | |
| | | { |
| | | $keys = array(); |
| | | |
| | | if (!empty($array)) { |
| | | if (!empty($array) && is_array($array)) { |
| | | foreach ($array as $key => $child) { |
| | | $keys[] = $key; |
| | | foreach (array_keys_recursive($child) as $val) { |
| | |
| | | |
| | | |
| | | /** |
| | | * Remove single and double quotes from given string |
| | | * Remove single and double quotes from a given string |
| | | * |
| | | * @param string Input value |
| | | * |