I have a couple of questions on strings.
First I need to select the first 500 characters in a string
without cutting off a word (approximately 500 will do)
Secondly I need to replace some characters in the string, for instance I need to replace a newline with a blank, and single quotes to two single quotes
How can these be done? I am using php 4.11
and the database is 7.22
Thanks in advance
First I need to select the first 500 characters in a string
without cutting off a word (approximately 500 will do)
Secondly I need to replace some characters in the string, for instance I need to replace a newline with a blank, and single quotes to two single quotes
How can these be done? I am using php 4.11
and the database is 7.22
Thanks in advance