php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #33506 iconv_substr_count
Submitted: 2005-06-29 13:42 UTC Modified: 2021-03-02 11:06 UTC
From: markus dot lervik at necora dot fi Assigned: cmb (profile)
Status: Wont fix Package: ICONV related
PHP Version: 5.1.0b2 OS: Irrelevant
Private report: No CVE-ID: None
 [2005-06-29 13:42 UTC] markus dot lervik at necora dot fi
Description:
------------
It would be very nice to have an iconv_substr_count -function too, as we have iconv_substr, iconv_strlen, iconv_strpos and iconv_strrpos. 
Naturally you can (and I have) write a recursive PHP function that handles it, but I'm assuming it'd be a lot more efficent if written in C.

I did attempt writing it myself, but unfortunately my C and the PHP API -knowledge is more than limited :(


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-12-30 22:56 UTC] cmb@php.net
-Package: Feature/Change Request +Package: ICONV related
 [2021-03-02 11:06 UTC] cmb@php.net
-Status: Open +Status: Wont fix -Assigned To: +Assigned To: cmb
 [2021-03-02 11:06 UTC] cmb@php.net
The mentioned iconv_*() functions are super slow due to how iconv
works; therefore it doesn't make sense to implement more of these
functions.  Use mb_substr_count() instead.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 03:01:28 2024 UTC