This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

First couple of chars...

Old posts that have not been replied to for several years.
Locked
S
Searchig

Post by Searchig »

I looked at how to scramble a word, but how can I have it just select the first 3 characters of a variable. Like if I set $myvar = "This is cool", and have another var set to Thi.

Any replies are appreciated.
S
Searchig

Post by Searchig »

Please ignore this. I found my answer. I forgot about string index :razz:
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

Heh string index will work, but string range is better :)
Locked