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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 20:01:31 2024 UTC