This Is A Custom Widget

This Sliding Bar can be switched on or off in theme options, and can take any widget you throw at it or even fill it with your custom HTML Code. Its perfect for grabbing the attention of your viewers. Choose between 1, 2, 3 or 4 columns, set the background color, widget divider color, activate transparency, a top border or fully disable it on desktop and mobile.

This Is A Custom Widget

This Sliding Bar can be switched on or off in theme options, and can take any widget you throw at it or even fill it with your custom HTML Code. Its perfect for grabbing the attention of your viewers. Choose between 1, 2, 3 or 4 columns, set the background color, widget divider color, activate transparency, a top border or fully disable it on desktop and mobile.
1 08, 2009

is_bool

By | 2009-08-11T15:10:53+00:00 August 1st, 2009|Categories: PHP, Ruby|Tags: , , , , , , |Comments Off on is_bool

The is_bool() function allows you to check if a particular variable is a boolean (type).

PHP

$my_variable = 1;
var_dump( is_bool($my_variable) );
// => false

Ruby

 my_variable = 1;
puts my_variable.is_a?(FalseClass) || my_variable.is_a?(TrueClass)
# => false