Re: Need difficult help !
| From: | Ewout de Boer | Date: | Fri, 15 Nov 2002 12:27:53 +0000 |
| Subject: | Re: Need difficult help ! | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-124621@lists.php.net to get a copy of this message | ||
Oops !
My mistake.. it's strlen()
substr = substring .. see http://www.php.net/substr
regards,
Ewout de Boer
On Fri, Nov 15, 2002 at 12:03:34PM +0100, Tristan Carron wrote:
> The strln() function is unknown...
> To understand the script, could you please tell me what the substr()
> function does ?
> Thanks a lot,
> Hacook
>
> ----- Original Message -----
> From: "Ewout de Boer" <ewout@chemistry-interactive.nl>
> To: "Hacook" <hacook@free.fr>
> Cc: "PHP General" <php-general@lists.php.net>
> Sent: Friday, November 15, 2002 11:59 AM
> Subject: Re: [PHP] Need difficult help !
>
>
> > You could try something like this:
> >
> >
> > $verylongstring
> > $data = ... // your cut function
> > $verylongstring = substr($verylongstring, strln($data);
> >
> >
> >
> > regards,
> >
> > Ewout de Boer
> >
> > ----- Original Message -----
> > From: "Hacook" <hacook@free.fr>
> > To: <php-general@lists.php.net>
> > Sent: Friday, November 15, 2002 11:39 AM
> > Subject: [PHP] Need difficult help !
> >
> >
> > > Hi all,
> > > I have a very long charachter chain which is like that :
> > >
> > > Number*link*name*Number*link*name*Number*link*name*Number*link*name*
> > >
> > > I made a php script to cut it thanks to the "*" to make a list with a
> > > number, and the name hyperlinked to the link.
> > > The thing is that after i get a data (number, link or name), i use
> > > str_replace to cut it off the chain to get the next one.
> > > But as my numbers are sometime the same, i have troubles because it cuts
> > all
> > > the same numbers off.
> > > Can i just cut one ?
> > > Thanks a lot for reading me and maybe answer me ? :-)
> > >
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> > >
> > >
> >
> >
>
>