The property length does not seem to exist in DOMNamedNodeMap.
An attempt at access to an undefined property has been detected. This may either be a typographical error
or the property has been renamed but there are still references to its old name.
If you really want to allow access to undefined properties, you can define magic methods
to allow access. See the php core documentation on Overloading.
Loading history...
31
10
for ($i = 0; $i < $length; $i++) {
32
10
$node = $element->attributes->item($i);
33
10
if (!in_array($node->nodeName, $except)) {
34
9
$attributes[$node->nodeName] = $node->nodeValue;
35
9
}
36
10
}
37
38
10
return $attributes;
39
}
40
41
3
public static function styleArrayToString(array $input)
42
{
43
3
return self::array2String($input, ':', ';');
44
}
45
46
/**
47
* @param array $input
48
* @param string $keyValueDelimiter
49
* @param string $valueEndDelimiter
50
*
51
* @return string
52
*/
53
4
public static function array2String(array $input, $keyValueDelimiter, $valueEndDelimiter)
An attempt at access to an undefined property has been detected. This may either be a typographical error or the property has been renamed but there are still references to its old name.
If you really want to allow access to undefined properties, you can define magic methods to allow access. See the php core documentation on Overloading.