alienhelpdesk.com
projects
Project London
The latest movie directed by Ian Hubert! And I get to help!
usefull sites
graphicall.org
Source of the latest blender builds

chunk of text

This function cuts a string to a set length, and makes sure it doesn't cut a word in half.

  1. // Get a nicely sliced chunk of a text that doesn't cut a word in half.
  2. function getChunkOText($text, $length){
  3.  
  4.         $text = substr($text, 0, $length);
  5.         $spaced = false;
  6.         while((!$spaced) && $length){
  7.                 $length--;
  8.                 if(substr($text, -1) != ' '){
  9.                         $text = substr($text, 0, $length);
  10.                 }else{
  11.                         $text = substr($text, 0, $length);
  12.                         $spaced = true;
  13.                 }
  14.         }
  15.         return $text;
  16. }
Display clean php code for copying
// Get a nicely sliced chunk of a text that doesn't cut a word in half.
function getChunkOText($text, $length){

	$text = substr($text, 0, $length);
	$spaced = false;
	while((!$spaced) && $length){
		$length--;
		if(substr($text, -1) != ' '){
			$text = substr($text, 0, $length);
		}else{
			$text = substr($text, 0, $length);
			$spaced = true;
		}
	}
	return $text;
}
Japanese proverb
Sumeba miyako
Wherever you live, you come to love it
Bounce tumble and splash
Bounce tumble and splash
Another masterpiece by Tony Mullen
Introducing character animation with Blender
Introducing character animation with Blender
The classic by Tony Mullen