3.142.173.227 |    

Navigation

Google Advertisement

All snippets of the tag string

Preview 10 Entries 11-20 of 33 Entries Next 10 Entries

searchmarker
(PHP::Function)
Created by Marko Schulz at 2010-01-20 13:38:42
/******************************************************************* * This function highlight a wanted keyword in a text. * * @param string $strHaystack raw text * @param string $strNeedle wanted keyword(s) * @param string $strColor color in h...

str_short
(PHP::Snippets)
Created by Marko Schulz at 2010-01-20 12:54:24
// ************************************************************** // str_short -- cut a string after n chars and append three points // // string str_short( string string [, int length] ) function str_short ( $str, $len = 30 ) { if ( strlen( ...

get_random_string
(PHP::Snippets)
Created by Marko Schulz at 2010-01-20 12:50:28
// $string = get_random_string( 36 ); // // This generate a random string of 24 characters. // // $string = get_random_string(); // ***************************************************************** // This function generate a random string of $coun...

httphost
(PHP::Snippets)
Created by Marko Schulz at 2010-01-20 12:48:45
// ************************************************************** // httphost -- Cut the hostname from protocol, port and uri and // return information about host+sub, domain, tld. // // mixed httphost( string $url [, string $key ] ) function...

code2html
(PHP::Snippets)
Created by Marko Schulz at 2010-01-20 12:46:49
function code2html($text) { $text=eregi_replace("\[B\]([^\[]+)\[/B\]", "<b>\\1</b>", $text); $text=eregi_replace("\[I\]([^[]+)\[/I\]", "<i>\\1</i>", $text); $text=eregi_replace("\[URL\]www.([^\[]+)\[/URL\]", "<a href=\"http://...

ucfirst
(Bash::Function)
Created by Marko Schulz at 2010-01-20 12:19:50
# ***************************************** # This function convert the first letter # into uppercase letters. function ucfirst () { if [ -n "$1" ]; then perl -e 'print ucfirst('$1')' else cat - | perl -ne 'print ucfirst($_)' fi }

strtoupper
(Bash::Function)
Created by Marko Schulz at 2010-01-20 12:19:12
# ***************************************** # This function convert all lowercase characters # into uppercase characters. function strtoupper () { if [ -n "$1" ]; then echo "$1" | tr '[:lower:]' '[:upper:]' else cat - | tr '[:lower:]' '[...

strtolower
(Bash::Function)
Created by Marko Schulz at 2010-01-20 12:18:37
# ***************************************** # This function convert all uppercase characters # into lowercase characters. function strtolower () { if [ -n "$1" ]; then echo "$1" | tr '[:upper:]' '[:lower:]' else cat - | tr '[:upper:]' '[...

lcfirst
(Bash::Function)
Created by Marko Schulz at 2010-01-20 12:17:10
# ***************************************** # This function convert the first letter # into lowercase letters. function lcfirst () { if [ -n "$1" ]; then perl -e 'print lcfirst('$1')' else cat - | perl -ne 'print lcfirst($_)' fi }

hostname
(Perl::Function)
Created by Marko Schulz at 2008-12-27 03:49:52
# ******************************************** # The function return the hostname of the # current system by using the unix command (hostname). sub hostname { my ($hostname) = ( `hostname` =~ m/([^\n]+)/g ); return $hostname; }

Preview 10 Entries 11-20 of 33 Entries Next 10 Entries
Search
 
Full text search by name and content of a snippet.

User online
There are 3 users online.

Tags Cloud

Latest snippets
str2seconds
(Bash::Function)
is_integer
(Bash::Function)
file_rotate
(Bash::Function)
confirm
(Bash::Function)
is_workingtime
(Bash::Function)
last day of last month
(Bash::Snippets)
crypt_apr1_md5
(PHP::Function)
crypt_apr1_md5
(Perl::Function)
transparent
(CSS)
rfc2822Toiso8601
(PHP::Function)