1
angaran
"Substringing" in Xoops
  • 2006/1/3 14:51

  • angaran

  • Not too shy to talk

  • Posts: 103

  • Since: 2003/8/17


Hi,
do you know if there is a function in XOOPS or PHP that is able to do the substring job but without cutting words ( using spaces as references )?

Thank you!

2
Mithrandir
Re: "Substringing" in Xoops

Not directly. You would have to use a combination of the PHP function strpos to find spaces, calculate how long the string should be to not cut words and then xoops_substr to cut it at that point.
"When you can flatten entire cities at a whim, a tendency towards quiet reflection and seeing-things-from-the-other-fellow's-point-of-view is seldom necessary."

Cusix Software

3
angaran
Re: "Substringing" in Xoops
  • 2006/1/3 19:01

  • angaran

  • Not too shy to talk

  • Posts: 103

  • Since: 2003/8/17


Thank you!! I will try and I'll post the code if I'm able to do it!

Bye!

Login

Who's Online

183 user(s) are online (102 user(s) are browsing Support Forums)


Members: 0


Guests: 183


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits