Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

#33189 [Opn]: error in definition of strripos
ID:               33189
Updated by:       aidan@php.net
Reported By:      alex at idoia dot com
Status:           Open
Bug Type:         Documentation problem
Operating System: debian linux
PHP Version:      Irrelevant
New Comment:

Hi Alex,

Actually that's not quite correct either.

Negative offset values mean the end of string is moved to the left by
the magnitude of the specified value plus one.

E.g. strripos('abcdef', 'b', -4) will search the string 'abc' for 'b'.

I've updated the manual to be a little more explicit.


Previous Comments:
------------------------------------------------------------------------

[2005-05-30 19:51:36] alex at idoia dot com

Description:
------------
the description says:
"offset may be specified to begin searching an arbitrary
number of characters into the string. Negative values
will stop searching at an arbitrary point prior to the
end of the string."

And I think the right definition is:
offset may be specified to begin searching an arbitrary
number of characters into the string. Negative values
will START searching at an arbitrary point prior to the
end of the string.



------------------------------------------------------------------------


--
Edit this bug report at http://bugs.php.net/?id=33189&edit=1

Report this thread to moderator Post Follow-up to this message
Old Post
aidan@php.net
05-31-05 01:56 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Documentation archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 06:37 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.