ID: 45898 Updated by: [EMAIL PROTECTED] Reported By: j dot stutterheim at hccnet dot nl -Status: Closed +Status: Bogus Bug Type: Feature/Change Request Operating System: OS X 10.5.4 PHP Version: 6CVS-2008-08-23 (CVS)
Previous Comments: ------------------------------------------------------------------------ [2008-08-23 18:47:04] [EMAIL PROTECTED] If you need more info about this, ask on the internals list. ------------------------------------------------------------------------ [2008-08-23 18:46:05] [EMAIL PROTECTED] This has been discussed on the internals list before, and the support for it seems to be minimal at best. You can read the last discussion about it on this thread: http://marc.info/?l=php-internals&m=119673254908065&w=2 ------------------------------------------------------------------------ [2008-08-23 13:28:05] j dot stutterheim at hccnet dot nl Description: ------------ Adding a string class to PHP would be greatly appreciated. It would allow for direct operations on a string: <?php $helloWorld = 'Hello World'; // Assign string 'Hello' to $hello $hello = $helloWorld->subString(0, 5); ?> Of course it would support a whole lot more string operations. See C# or Java as reference for example. It should also be compatible with the current string functions. PHP 6 would be a nice target for this feature. If for some reason it's not possible to combine this with the current approach, consider looking at Objective-C's solution. It requires an @ to be appended before the string, so it becomes a NSString instead of a regular C string. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=45898&edit=1