Mar 28, 2006 #1 solex Programmer Feb 28, 2003 91 GB Hello, I want to trim any " ' " from a string, tired a few functons with out the right result so far :s thanx in advance Charles
Hello, I want to trim any " ' " from a string, tired a few functons with out the right result so far :s thanx in advance Charles
Mar 28, 2006 #2 sleipnir214 Programmer May 6, 2002 15,350 US The PHP function trim()[link] will remove whitespace from the beginning and end of a string. The function will take an optional parameter specifying alternate characters to be stripped. Want the best answers? [url=http://www.catb.org/~esr/faqs/smart-questions.html]Ask the best questions! TANSTAAFL! Upvote 0 Downvote
The PHP function trim()[link] will remove whitespace from the beginning and end of a string. The function will take an optional parameter specifying alternate characters to be stripped. Want the best answers? [url=http://www.catb.org/~esr/faqs/smart-questions.html]Ask the best questions! TANSTAAFL!
Mar 28, 2006 #3 sleipnir214 Programmer May 6, 2002 15,350 US Sorry. Part of that post should have read: trim() Want the best answers? Ask the best questions! TANSTAAFL! Upvote 0 Downvote
Sorry. Part of that post should have read: trim() Want the best answers? Ask the best questions! TANSTAAFL!
Mar 28, 2006 Thread starter #4 solex Programmer Feb 28, 2003 91 GB Ive tried this function, must have implemented the wrong syntax, could youprovide an example of this function removing " ' " :s thanx Charles Upvote 0 Downvote
Ive tried this function, must have implemented the wrong syntax, could youprovide an example of this function removing " ' " :s thanx Charles
Mar 28, 2006 #5 sleipnir214 Programmer May 6, 2002 15,350 US It's just as the online manual specifies.... Code: <?php $a = "The sheeps'"; print trim ($a, "'"); ?> Outputs: The sheeps Want the best answers? Ask the best questions! TANSTAAFL! Upvote 0 Downvote
It's just as the online manual specifies.... Code: <?php $a = "The sheeps'"; print trim ($a, "'"); ?> Outputs: The sheeps Want the best answers? Ask the best questions! TANSTAAFL!