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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: netriver+php at gmail dot com
New email:
PHP Version: OS:

 

 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2020 The PHP Group
All rights reserved.
Last updated: Wed Nov 25 09:01:23 2020 UTC