downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  

<strcollstrip_tags>
Last updated: Thu, 26 Jun 2008

strcspn

(PHP 4, PHP 5)

strcspn — Find length of initial segment not matching mask

Description

int strcspn ( string $str1 , string $str2 [, int $start [, int $length ]] )

Returns the length of the initial segment of str1 which does not contain any of the characters in str2 .

Parameters

str1

The first string.

str2

The second string.

start

The start position of the string to examine.

length

The length of the string to examine.

Return Values

Returns the length of the segment as an integer.

ChangeLog

Version Description
4.3.0 The start and length were added

Notes

Note: This function is binary-safe.

See Also



add a noteadd a note User Contributed Notes
Find length of initial segment not matching mask
There are no user contributed notes for this page.




<strcollstrip_tags>
Last updated: Thu, 26 Jun 2008
show source | credits | sitemap | contact | advertising | mirror sites
Copyright © 2001-2005 The PHP Group
All rights reserved.
This unofficial mirror is operated at: http://phpbuilder.com/
Last updated: Tue Nov 1 20:20:59 2005 EST
Columns / Articles | Tips / Quickies | News | News Linking and RSS Feeds | Shared Code Library
Mail Archives | Support / Discussion Forums | Get Started! Links | Contribute! | Docs