Forums / Developer / Substrings?

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Substrings?

Author Message

Chris Fullerton

Thursday 15 April 2004 8:26:23 am

Is there a way to get the location of a substing (or use strpoS()?)

I have a string - let's say it's "abc xx xyz xx" and I want to extract everything between the xx's - in this case, "xyz".

It seems that extract() will do it, but I can't find a way to figure out the location of the xx's.

Thanks.

Björn X

Thursday 15 April 2004 9:45:52 am

no

but you can create your own operator that does this.

There is a a operator class which mapps core php functions. Check kernel/classes/common/*