php-developer-list | 2002112
Date: 11/19/02
- Next message: Yasuo Ohgaki: "Re: [PHP-DEV] 4.2.3 mbstring patch?"
- Previous message: Hacook: "[PHP-DEV] Just a little question"
- In reply to: Hacook: "[PHP-DEV] Just a little question"
- Next in thread: Ford, Mike [LSS]: "RE: [PHP-DEV] Just a little question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
$ar = array_diff(explode('*',$str), array());
Regards
Andrey
----- Original Message -----
From: "Hacook" <hacook <email protected>>
To: <php-dev <email protected>>
Sent: Tuesday, November 19, 2002 11:47 AM
Subject: [PHP-DEV] Just a little question
> Hi all,
> I have a chain charachter that look like this :
> *text*text*text*text*text....etc
> I would like to cut off the FIRST star but not the others
> My chain is REALLY long.
> I made that script :
>
> $maxi=strlen($resultats)-2;
> $nb = 0;
> while ($nb<=$maxi) {
> $results2 = $results2.$results[1+$nb];
> $nb = $nb+1;
> }
>
> where $results is the chain
> It works perfectly but it takes over 5 minutes !
> Do you have any idea on how to make it faster ?
> Thanks,
> Hacook
>
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, visit: http://www.php.net/unsub.php
>
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: Yasuo Ohgaki: "Re: [PHP-DEV] 4.2.3 mbstring patch?"
- Previous message: Hacook: "[PHP-DEV] Just a little question"
- In reply to: Hacook: "[PHP-DEV] Just a little question"
- Next in thread: Ford, Mike [LSS]: "RE: [PHP-DEV] Just a little question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

