Builds a style-attribute string for a html-tag based on a provided styles-definition-array.
Use this e.g. for comfortable css-inlining.
Use this in combination with the function: styles_merge(...) for easy combining / extending dynamically different (overridable) styles.
Syntax
style_get(string $tag, array $styles = null): ?string
Parameter
@param string $tag The (html-)tag for which you want to get the style-string for.
@param array|null $styles An array containing all defined styles.
* Array must be of the structure:
* $A[<tag>][<style-attr>] = "<css-style-value>"
*
* HINT: use the function: styles_merge(...) to build an array of the
* structure as needed here.
Return
Returns a composed style-attribute-string in the following syntax:
"<style-attr #1>:<value>;<style-attr #2>:<value>;..."
Examples
Yet to come...
...