..).
public static isSerializedValue ( $value ) : boolean | ||
$value | ||
리턴 | boolean |
private static function serializeData($data) { $output = []; foreach ($data as $key => $value) { if ($key == '') { continue; } if (is_array($value)) { foreach ($value as $arrayKey => $arrayValue) { $output[] = self::serializeKeyValuePair($key . "[{$arrayKey}]", $arrayValue); } } elseif (StringUtils::isSerializedValue($value)) { $lines = SerializedDataToIniConverter::toIniLines($key, $value); $output = array_merge($output, $lines); } else { $output[] = self::serializeKeyValuePair($key, $value); } } return $output; }