note 26290 deleted from function.substr by betz

From: Date: Fri, 25 Oct 2002 10:38:23 +0000
Subject: note 26290 deleted from function.substr by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-38548@lists.php.net to get a copy of this message
About strings and spaces // $data - my string $lim=160; // limit of chars in message $text = split(" ",$data); $i=0; $add_str=""; while($i<=count($text)) { $add_str.=$text[$i]." "; if(strlen($tt)<=$lim) { $out=$add_str; } else { echo $out; $add_str=""; } $i++; }

« previous php.notes (#38548) next »