Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Get the integer value of a variable
<?php intval(mixed $value, int $base = 10): int
<?php return 0;
}
return intval((int) $diff * 100 / $v);
}
}
<?php $left = $top;
}
$this->styles->set('margin.top', intval($top * $themeSpacer));
$this->styles->set('margin.right', intval($right * $themeSpacer));
$this->styles->set('margin.bottom', intval($bottom * $themeSpacer));
$this->styles->set('margin.left', intval($left * $themeSpacer));
<?php }
$this->styles->set('margin.top', intval($top * $themeSpacer));
$this->styles->set('margin.right', intval($right * $themeSpacer));
$this->styles->set('margin.bottom', intval($bottom * $themeSpacer));
$this->styles->set('margin.left', intval($left * $themeSpacer));
<?php $this->styles->set('margin.top', intval($top * $themeSpacer));
$this->styles->set('margin.right', intval($right * $themeSpacer));
$this->styles->set('margin.bottom', intval($bottom * $themeSpacer));
$this->styles->set('margin.left', intval($left * $themeSpacer));
return $this;
<?php $this->styles->set('margin.top', intval($top * $themeSpacer));
$this->styles->set('margin.right', intval($right * $themeSpacer));
$this->styles->set('margin.bottom', intval($bottom * $themeSpacer));
$this->styles->set('margin.left', intval($left * $themeSpacer));
return $this;
}
<?php {
$themeSpacer = self::$theme->getVariables()->get('spacer', 1);
$this->styles->set('margin.left', intval($value * $themeSpacer));
$this->styles->set('margin.right', intval($value * $themeSpacer));
return $this;
<?php $themeSpacer = self::$theme->getVariables()->get('spacer', 1);
$this->styles->set('margin.left', intval($value * $themeSpacer));
$this->styles->set('margin.right', intval($value * $themeSpacer));
return $this;
}
<?php {
$themeSpacer = self::$theme->getVariables()->get('spacer', 1);
$this->styles->set('margin.top', intval($value * $themeSpacer));
$this->styles->set('margin.bottom', intval($value * $themeSpacer));
return $this;
<?php $themeSpacer = self::$theme->getVariables()->get('spacer', 1);
$this->styles->set('margin.top', intval($value * $themeSpacer));
$this->styles->set('margin.bottom', intval($value * $themeSpacer));
return $this;
}
<?php {
$themeSpacer = self::$theme->getVariables()->get('spacer', 1);
$this->styles->set('margin.top', intval($value * $themeSpacer));
return $this;
}
<?php {
$themeSpacer = self::$theme->getVariables()->get('spacer', 1);
$this->styles->set('margin.bottom', intval($value * $themeSpacer));
return $this;
}
<?php {
$themeSpacer = self::$theme->getVariables()->get('spacer', 1);
$this->styles->set('margin.left', intval($value * $themeSpacer));
return $this;
}
<?php {
$themeSpacer = self::$theme->getVariables()->get('spacer', 1);
$this->styles->set('margin.right', intval($value * $themeSpacer));
return $this;
}
<?php {
$themeSpacer = self::$theme->getVariables()->get('spacer', 1);
$this->styles->set('padding.left', intval($value * $themeSpacer));
$this->styles->set('padding.right', intval($value * $themeSpacer));
return $this;
<?php $themeSpacer = self::$theme->getVariables()->get('spacer', 1);
$this->styles->set('padding.left', intval($value * $themeSpacer));
$this->styles->set('padding.right', intval($value * $themeSpacer));
return $this;
}