Servage Magazine

Information about YOUR hosting company – where we give you a clear picture of what we think and do!

Archive for April, 2019

More with CSS Visual effects

Saturday, April 20th, 2019 by Servage
transforms Transform Values: transform function(s) | none Default: none Applies to: transformable elements (see sidebar) Inherits: no This article focuses on the more straightforward 2-D varieties because they have more practical uses. Transforms are supported on all major browser versions with vendor prefixes. They are not supported at all on IE8 and earlier, Firefox 3 and earlier, and Opera 10.1 and earlier. You can apply a transform to the normal state of an element and it will appear in its transformed state when the page loads. Just be sure that the page is still usable on browsers that don’t support transforms. It is common to pull out the transforms only when users interact with the element via a ...

Variable-typing in PHP

Tuesday, April 16th, 2019 by Servage
php-explorer-tab-search PHP is a very loosely typed language. This means that variables do not have to be declared before they are used, and that PHP always converts variables to the type required by their context when they are accessed. For example, you can create a multiple-digit number and extract the "nth" digit from it, simply by assuming it to be a string. In the following snippet of code the numbers 12345 and 67890 are multiplied together, returning a result of 838102050, which is then placed in the variable $number. Automatic conversion from a number to a string <?php $number = 12345 * 67890; echo substr($number, 3, 1); ?> At the point of the assignment, $number is a numeric variable. ...