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.

array_shift

The array_shift() function in PHP removes an element from the beginning of an array and returns it.

PHP

$my_array = array('a', 'b', 'c', 'd');
$my_element = array_shift($my_array);
print_r($my_element);
/*
Array (
	[0] => a
)
*/

Ruby

my_array = [ "a", "b", "c", "d" ];
puts my_array.shift;
# => ["a"]
By | 2009-10-27T15:39:23+00:00 October 14th, 2009|Categories: PHP, Ruby|Tags: , , |Comments Off on array_shift

About the Author: