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.

list

The list() function in PHP is used to assign multiple variables as if they were an array. Technically, list() is not a function in PHP, it is a language construct.

Ruby has no real need for a function such as list(), as the same can be achieve using parallel assignment – i.e. assigning comma separated variables to elements of an array using the normal assignment operator.

PHP

$langs = array('php', 'ruby', 'perl');
list($lang1, $lang2, $lang3) = $langs;
echo $lang1;	// php
echo $lang2;	// ruby
echo $lang3;	// perl

Ruby

langs = [ "php", "ruby", "perl" ];
lang1, lang2, lang3 = langs;
puts lang1;	# php
puts lang2;	# ruby
puts lang3;	# perl
By | 2009-10-15T22:36:18+00:00 October 1st, 2009|Categories: PHP, Ruby|Tags: , , , , , , |Comments Off on list

About the Author: