note 104607 deleted from function.wordwrap by danbrown
| From: | danbrown@php.net | Date: | Sat, 25 Jun 2011 11:36:41 +0000 |
| Subject: | note 104607 deleted from function.wordwrap by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-180948@lists.php.net to get a copy of this message | ||
Note Submitter: guardian
----
@dynastoned:
Isn't it easier to use a foreach loop instead of a for loop?
For example:
foreach($array as $value){
$word_split = wordwrap($value, 15, " ", true);
echo "$word_split ";
}