Hi,
I have my script returning this from a form
body { line-height: normal;
color: transparent;
font-weight: normal;
font-style: normal;
text-decoration: none;
text-align: left;
background-color: transparent;
}
but I need to ignore $v2 and $v3 if $v3 is normal or transparent making it return
body {
font-size: 12px ;
color: black;
text-decoration: none;
text-align: left;
background-color: white;
}
I have tried
if (!empty($v3)||( $v3 != 'normal'))
but then the !empty dosen't work
PHP Code:
<?php function makecss(){
global $style;
foreach ($style as $key => $value) {
echo "$key {";
foreach ($value as $v2 => $v3) {
if (!empty($v3)){
echo " $v2: $v3; \n ";}
}
echo "}\n";
}
}
makecss()
?>