note 26291 deleted from function.substr by aidan

From: Date: Sat, 03 Jul 2004 07:53:02 +0000
Subject: note 26291 deleted from function.substr by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-72381@lists.php.net to get a copy of this message
Note Submitter: ompl@nm.ru ---- 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 (#72381) next »