<?php
function shorturl($url){
return strlen($url) > 45) ? substr($url, 0, 30).'[ ... ]'.substr($url, -15) : $url;
...
#!/usr/bin/env python import sys, os ...
Python On filter by indentation level
by fain182.myopenid.com,
September 21, 2009 12:58
count_leading_spaces() slig...
http://it2.php.net/manual/en/function.end.php
$fruits = array('apple', 'banana', 'cranberry');
...
PHP On is there a way to do this i...
by fain182.myopenid.com,
March 02, 2009 08:23
you can use end(), if you w...
function parse_accept_headers($default = 'html'){
$formats = array(
'text/html' => 'html',
...
PHP On Parse HTTP Accept headers
by fain182.myopenid.com,
January 09, 2009 16:40
slightly improved..
<?php /* E.g: ...
PHP On remove http from url string
by fain182.myopenid.com,
November 17, 2008 19:42
this would solve the proble...
PHP On Base class for easy class p...
by fain182.myopenid.com,
November 13, 2008 11:16
it isn't better to use __ge...
<?php /* E.g: ...
PHP On remove http from url string
by fain182.myopenid.com,
November 13, 2008 11:06
this should be faster
