Raised This Month: $ Target: $400
 0% 

Remove special chars


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 07-03-2014 , 12:22   Re: Remove special chars
Reply With Quote #1

you can use isalpha() for that too:
PHP Code:
new szString[] = "[Hello]"
new szNewString[sizeof szString]

for(new 
iposcharsmax(szString); i++)
{
    if(
isalpha(szString[i]))
    {
        
szNewString[pos++] = szString[i]
    }

mottzi is offline
Send a message via MSN to mottzi
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:16.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode