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 Dieding@xrow.de

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/*

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.