You appear to be a bot. Output may be restricted
Description
bbboing a particular (potentially complex) wordIf the word itself did not start with a "<" then the original logic attempted to ignore any final punctuation character So "word." would become "wrod." But we need to be smarter than that. e.g. http://www.bobbingwide.com could become http://www.bbbidiwonge.com
Usage
$string = bboing( $word );
Parameters
- $word
- ( string ) required – a particular word
Returns
string the bbboing'ed wordSource
File name: bbboing/bbboing.incLines:
1 to 20 of 20
function bboing( $word ) { if ( ctype_alpha( $word ) ) { // echo "c"; $word = boing( $word ); } else { $count = strlen( $word ); $l = substr( $word, 0, 1 ); if ( $l <> "<" ) { $r = substr( $word, $count-1 ); $pos = strpos( ".?:-", $r ); if ($pos === FALSE ) { $word = boing( $word ); } else { $word = boing( substr( $word, 0, $count-1 )) . $r; } } } return( $word ); }View on GitHub View on Trac