The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
Indexing into a string
10-30-2017, 09:18 AM
Post: #1
Indexing into a string
I'm currently working with strings and something very inconsistent is going on.
Lets say I have a string, s, that is something like "This is a very nice day".

However, when I use s(3), it returns a number instead of "i".
I have to use CHAR(s(3)) to get the character.
Surely an index into a string should return a string.
Is there a faster way to index into a string to return a string? Anyone know?
Thanks
-Donald
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Indexing into a string - webmasterpdx - 10-30-2017 09:18 AM
RE: Indexing into a string - webmasterpdx - 10-30-2017, 09:37 AM
RE: Indexing into a string - webmasterpdx - 10-30-2017, 09:51 AM
RE: Indexing into a string - DrD - 10-30-2017, 10:06 AM
RE: Indexing into a string - webmasterpdx - 10-30-2017, 03:04 PM



User(s) browsing this thread: 3 Guest(s)