020 555 1111
  • Old fashion, modular, procedural PHP plus some scaffolding techniques to allow it to mimic MVC simplicity.
  • A quick reference to help you find in PHP maze what needs to be done and how to do it.
  • Learn a PHP Object Oriented Programming by building a live discussion forum application.
  • MVC - Model View Controller - real life, easy reference and application.
This product has options, take a look at them and select ones you like the most.
Options are displayed under image section.

break string at given length with given break-char
[php functions]

 

//break string at given length with given break-char
function tep_break_string($string, $len, $break_char = '-') {
	$l = 0;
	$output = '';
		for ($i=0, $n=strlen($string); $i<$n; $i++) {
		  $char = substr($string, $i, 1);
		  if ($char != ' ') {
			$l++;
		  } else {
			$l = 0;
		  }
		  if ($l > $len) {
			$l = 1;
			$output .= $break_char;
		  }
		  $output .= $char;
		}
	return $output;
}