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.

explode

The explode function takes 2 parameters – the first is the delimiter, and the second is the string to be exploded. It returns an array of strings, each of which is a substring of the original, formed by splitting the original string on boundaries formed by the string delimiter.

PHP

$my_string = 'perl, python, java';
$array = explode(', ', $my_string);
var_dump($a);
/*
Array (
	[0] => perl
	[1] => python
	[2] => java
)
*/

Ruby

my_string = 'perl, python, java';
puts my_string.split(', ');
# => ["perl", "python", "java"]
By | 2009-10-15T22:42:12+00:00 May 29th, 2009|Categories: PHP, Ruby|Tags: , , , , , |Comments Off on explode

About the Author: