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.

eZ debug

Timing: Jan 18 2025 22:28:19
Script start
Timing: Jan 18 2025 22:28:19
Module start 'layout'
Timing: Jan 18 2025 22:28:19
Module start 'content'
Timing: Jan 18 2025 22:28:20
Module end 'content'
Timing: Jan 18 2025 22:28:20
Script end

Main resources:

Total runtime0.6789 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0079 587.7969152.6094
Module start 'layout' 0.00790.0037 740.406339.3984
Module start 'content' 0.01160.6657 779.8047518.8594
Module end 'content' 0.67730.0016 1,298.66418.2031
Script end 0.6789  1,306.8672 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4733160.0002
Check MTime0.00130.1853160.0001
Mysql Total
Database connection0.00140.200310.0014
Mysqli_queries0.632093.0882540.0117
Looping result0.00050.0770520.0000
Template Total0.648795.520.3243
Template load0.00190.283120.0010
Template processing0.646795.258120.3234
Template load and register function0.00010.018110.0001
states
state_id_array0.00120.179610.0012
state_identifier_array0.00110.160120.0005
Override
Cache load0.00150.2192120.0001
Sytem overhead
Fetch class attribute can translate value0.00080.123820.0004
Fetch class attribute name0.00100.141430.0003
XML
Image XML parsing0.00080.110920.0004
class_abstraction
Instantiating content class attribute0.00000.000830.0000
General
dbfile0.00090.1265160.0001
String conversion0.00000.001540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 7
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs