php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #62011 SPL_Types SplString() support for strpos, replace , string functions in general
Submitted: 2012-05-12 13:46 UTC Modified: 2017-01-10 08:14 UTC
From: netriver+php at gmail dot com Assigned:
Status: Suspended Package: SPL_Types (PECL)
PHP Version: 5.4.3 OS:
Private report: No CVE-ID: None
 [2012-05-12 13:46 UTC] netriver+php at gmail dot com
Description:
------------
My feature request is to have support for string functions inside a php SplString so it's normalized under this object and that it can be made easy to manipulate strings.

A few examples in PHP

$b = new SplString("A String");
$a = $b->replace("A", "The");
// $a == "The String" , $b == "A String"

$a->replace("The", "Thy");
print $a // $a == "Thy String");

print $a->substr(0, 3); // "Thy "

print $a->indexOf("T"); // 0


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-05-13 14:45 UTC] felipe@php.net
-Package: PECL +Package: SPL_Types
 [2014-07-02 21:06 UTC] tobihille at gmail dot com
Just have a look at this especially ConvString, maybe it helps: ttps://github.com/tobihille/php_java_types
 [2017-01-10 08:14 UTC] kalle@php.net
-Status: Open +Status: Suspended
 [2017-01-10 08:14 UTC] kalle@php.net
Suspending this report as the extension have not had a release for almost 5 years.  Please revive this if the extension once again shows life
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 12:01:31 2024 UTC