Raised This Month: $ Target: $400
 0% 

while i++ == containi[i] problem, i need to skip letters ( fixed)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Owyn
Veteran Member
Join Date: Nov 2007
Old 04-10-2009 , 08:35   Re: while i++ == containi[i] problem
Reply With Quote #1

yea i thought of it, and i want to know how make comparation right so it would compare to three characters right and after remove it from message like it removes "!" if it begins with em and make i++ or a thing like that like this code does with single character !
PHP Code:

    
while (said[i] == '!')
    {
        
i++
    } 
__________________
☜ Free Mozy ☂backup\҉sync user
Quote:
Американский форум - Задаёшь вопрос, потом тебе отвечают.
Израильский форум - Задаёшь вопрос, потом тебе задают вопрос.
Русский форум - Задаёшь вопрос, потом тебе долго рассказывают, какой ты мудак.

Last edited by Owyn; 04-10-2009 at 08:46.
Owyn is offline
Send a message via ICQ to Owyn
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 04-10-2009 , 08:45   Re: while i++ == containi[i] problem
Reply With Quote #2

Code removed.

But, the first character after the last '!' will be expected to be a color indicator.
__________________

Last edited by fysiks; 04-10-2009 at 09:36. Reason: fixed replace() args
fysiks is offline
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 02:24.


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