Re: Splitting strings

From: Timothy_Maguire(at)hartehanks(dot)com
To: "Christian Marschalek" <cm(at)chello(dot)at>
Cc: "[PHP] PostgreSQL" <pgsql-php(at)postgresql(dot)org>
Subject: Re: Splitting strings
Date: 2001-04-23 15:51:25
Message-ID: OFA1DA680E.A900E7ED-ON85256A37.0056F992@hartehanks.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php


try

array = explode("*", "abc*def*ghi");

That will put it into and array called array with 3 parts to it.

"Christian Marschalek" <cm(at)chello(dot)at>@postgresql.org on 04/23/2001 11:53:08
AM

Sent by: pgsql-php-owner(at)postgresql(dot)org

To: "[PHP] PostgreSQL" <pgsql-php(at)postgresql(dot)org>
cc:

Subject: Splitting strings

How would you split a string which is seperated by * with PHP?

Like "abc*def*ghi" into "abc","def","ghi"?

Any clues? Thanks in advance :)

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Browse pgsql-php by date

  From Date Subject
Next Message Christian Marschalek 2001-04-23 15:53:08 Splitting strings
Previous Message Mitch Vincent 2001-04-22 18:44:22 Re: Help with pg_loimport