php-windows Digest 25 Mar 2002 10:15:28 -0000 Issue 1061

Topics (messages 12741 through 12747):

explode
        12741 by: KONUS
        12742 by: Ross Fleming
        12743 by: Gaylen Fraley
        12745 by: KONUS

Is there anyway to save a file into Mysql database
        12744 by: Jack

How to Pass the Username which from Windows Login
        12746 by: Jack

Re: random elements of an array
        12747 by: Svensson, B.A.T. (HKG)

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
What is explode...??

please explaine it in simple english with an example.
Because iam a new to PHP.

Many thanks, --ZEUS--
--- End Message ---
--- Begin Message ---
No probs.

explode is a way of splitting up a string using any character you want as
the divider.  For example...

Say you wanted to split a string into individual words. $string_var = "The
cat sat on the mat";

$words_var = explode(" ", $string_var);

Explode splits $string_var by the space character and returns an array of
all the words that are in $string_var.
$words_var is now an array of strings with a word in each element.

Ross

-----Original Message-----
From: KONUS [mailto:[EMAIL PROTECTED]]
Sent: 15 March 2002 19:20
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] explode


What is explode...??

please explaine it in simple english with an example.
Because iam a new to PHP.

Many thanks, --ZEUS--

--- End Message ---
--- Begin Message ---
http://www.php.net/manual/en/function.explode.php

--
Gaylen
PHP KISGB v4.0.2 Guest Book http://www.gaylenandmargie.com/phpwebsite/

"Konus" <[EMAIL PROTECTED]> wrote in message
005101c1cc56$8c4e9ae0$7ffd92ca@kukut">news:005101c1cc56$8c4e9ae0$7ffd92ca@kukut...
What is explode...??

please explaine it in simple english with an example.
Because iam a new to PHP.

Many thanks, --ZEUS--



--- End Message ---
--- Begin Message ---
thanks for all the reply now i get it..

Many many thanks...

^^
----- Original Message -----
From: "Ross Fleming" <[EMAIL PROTECTED]>
To: "KONUS" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, March 25, 2002 10:09 AM
Subject: RE: [PHP-WIN] explode


> No probs.
>
> explode is a way of splitting up a string using any character you want as
> the divider.  For example...
>
> Say you wanted to split a string into individual words. $string_var = "The
> cat sat on the mat";
>
> $words_var = explode(" ", $string_var);
>
> Explode splits $string_var by the space character and returns an array of
> all the words that are in $string_var.
> $words_var is now an array of strings with a word in each element.
>
> Ross
>
> -----Original Message-----
> From: KONUS [mailto:[EMAIL PROTECTED]]
> Sent: 15 March 2002 19:20
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] explode
>
>
> What is explode...??
>
> please explaine it in simple english with an example.
> Because iam a new to PHP.
>
> Many thanks, --ZEUS--
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---
Dear all
Can someone pls tell me is php will be able to grep text from MS Word and
then save that word file into MYSQL database? Which means is MYSQL will be
able to store files into it's table?

Thx a lot
jack
[EMAIL PROTECTED]


--- End Message ---
--- Begin Message ---
Dear all
I want to prevent user to make another login before they can browse the
Intranet, so is there anyway that php can grep the username from the windows
Login or Domain Login?
Which means if a user can login to the Windows NT, then he/she will have the
right to browse the Intranet!

Thx a lot
Jack
[EMAIL PROTECTED]


--- End Message ---
--- Begin Message ---
Of course the algorithm works...

>-----Original Message-----
>From: Nicole Amashta 
>Sent: Friday, March 22, 2002 4:36 PM
>To: [EMAIL PROTECTED]
>Subject: Re: [PHP-WIN] random elements of an array
>

[...]

>I have tested this. It works, Even after you refresh the page. Try it!
>
>Nicole
>www.aeontrek.com
>
>
>
>"B.A.T. Svensson" wrote in message
>> You can completely randomize an array with n elements in n 
>operations, by
>> using the following brute force approach:
>>
>> void ScrambleIntList(int *pnElements, int nLen)
>> {
>>   for (nLoop = 0, nLoop<nLen; nLopp++)  {
>>
>>     //  Pic a random element
>>     int nRandomPic = nLen * rand();
>>
>>     //Swap current element with the random pic
>>     int nTemp = pnElement[nLoop];
>>     pnElement[nLoop] = Element[nRandomPic];
>>     pnElement[nRandomPic] = nTemp;
>>
>>   }
>> }
>>
>> /Anders
>>
>> >-----Original Message-----
>> >From: Afan Pasalic [mailto:[EMAIL PROTECTED]]
>> >Sent: Thursday, March 21, 2002 9:17 PM
>> >To: [EMAIL PROTECTED]
>> >Subject: [PHP-WIN] random elements of an array
>> >
>> >
>> >Hi,
>> >
>> >My problem is: if I have an array (e.g. 1, 2, 3, 4, 5, 6, 7,
>> >8, 9), how I can "shake" the array and get randomized order of
>> >the same array (e.g. 5, 8, 1, 9, 3, 4, 7, 2, 6)?
>> >
>> >Thanks for any help!
>> >
>> >
>> >Afan
>> >
>
>
>
>-- 
>PHP Windows Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---

Reply via email to