[PHP] First 30 characters of a strong

2008-10-05 Thread Ron Piggott
How do I display the first 5 characters of a string? $string="abcdefghijklmnopqrstuvwxyz"; my desired output is abcde -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] First 30 characters of a strong

2008-10-05 Thread Ashley Sheridan
On Sun, 2008-10-05 at 14:52 -0400, Ron Piggott wrote: > How do I display the first 5 characters of a string? > > $string="abcdefghijklmnopqrstuvwxyz"; > > my desired output is > > abcde > > substr($string, 0, 5); Ash www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php

[PHP] mt_rand() - the same forever?

2008-10-05 Thread Janek
I wonder whether I can rely on the stability of mt_srand() and mt_rand(). I want them to generate the same sequence for a fixed seed, regardless of PHP version. Do you think I can trust it? Janek -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mt_rand() - the same forever?

2008-10-05 Thread Richard Heyes
> I wonder whether I can rely on the stability of mt_srand() and > mt_rand(). I want them to generate the same sequence for a fixed seed, > regardless of PHP version. Do you think I can trust it? > Janek Keep in mind (if you're not already) that mt_rand() doesn't technically need to be seeded. --

Re: [PHP] mt_rand() - the same forever?

2008-10-05 Thread Janek
I know, but I *want* to seed it. My goal is to have a fixed pseudorandom sequence for each integer (seed) and I don't want those sequences to change regarding PHP version. Janek On Sun, Oct 5, 2008 at 9:52 PM, Richard Heyes <[EMAIL PROTECTED]> wrote: >> I wonder whether I can rely on the stabilit

Re: [PHP] mt_rand() - the same forever?

2008-10-05 Thread Ashley Sheridan
On Sun, 2008-10-05 at 21:57 +0200, Janek wrote: > I know, but I *want* to seed it. My goal is to have a fixed > pseudorandom sequence for each integer (seed) and I don't want those > sequences to change regarding PHP version. > > Janek > > On Sun, Oct 5, 2008 at 9:52 PM, Richard Heyes <[EMAIL PRO

Re: [PHP] mt_rand() - the same forever?

2008-10-05 Thread Janek
On Sun, Oct 5, 2008 at 10:05 PM, Ashley Sheridan <[EMAIL PROTECTED]> wrote: > On Sun, 2008-10-05 at 21:57 +0200, Janek wrote: >> I know, but I *want* to seed it. My goal is to have a fixed >> pseudorandom sequence for each integer (seed) and I don't want those >> sequences to change regarding PHP v

Re: [PHP] mt_rand() - the same forever?

2008-10-05 Thread Jochem Maas
Janek schreef: > On Sun, Oct 5, 2008 at 10:05 PM, Ashley Sheridan > <[EMAIL PROTECTED]> wrote: >> On Sun, 2008-10-05 at 21:57 +0200, Janek wrote: >>> I know, but I *want* to seed it. My goal is to have a fixed >>> pseudorandom sequence for each integer (seed) and I don't want those >>> sequences to

[PHP] Politics

2008-10-05 Thread Amy
confronted gillion presently flakey expanded courses newsreader publicaccess storages -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re:

2008-10-05 Thread huaizong wang
On Sun, Oct 5, 2008 at 1:00 PM, huaizong wang <[EMAIL PROTECTED]> wrote: > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Join The Team

2008-10-05 Thread Hemant Patel
Hi...ALL... With Regads, Hemant Patel

[PHP] Best Search Algorithm for Millions of record

2008-10-05 Thread Hemant Patel
My question is Whether I should go for Full Text Based search or Database Search...?And is there algorithm in php which can help me in this case...?