What I am trying to do is have a line of text break at a space after reading 19
words. Having read the various methods of finding and replacing one character with
another, I settled on preg_replace as my best choice, but this function doesn't accept
a space in the regular expression slot.
$statement=preg_replace(/ /,br,$original,19);
Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs
-Original Message-
From: hugh danaher [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 30, 2002 12:35 PM
To: Php-General
Subject: [PHP] preg_replace() 'space' the final
To: hugh danaher; Php-General
Subject: RE: [PHP] preg_replace() 'space' the final frontier
$statement=preg_replace(/ /,br,$original,19);
Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs
-Original Message-
From: hugh danaher [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 30
On Thursday 31 January 2002 04:00, Matthew Walker wrote:
What I am trying to do is have a line of text break at a space after
reading 19 words. Having read the various methods of finding and
replacing one character with another, I settled on preg_replace as my
best choice, but this function
4 matches
Mail list logo