pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Timothy_Maguire@hartehanks.com
To: Christian Marschalek <cm@chello.at>
Cc: [PHP] PostgreSQL <pgsql-php@postgresql.org>
Subject: Re: Splitting strings
Date: Mon, 23 Apr 2001 11:51:25 -0400
Message-ID: <OFA1DA680E.A900E7ED-ON85256A37.0056F992@hartehanks.com> (raw)


try

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

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




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

Sent by:  pgsql-php-owner@postgresql.org


To:   "[PHP] PostgreSQL" <pgsql-php@postgresql.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






view thread (6+ messages)  latest in thread

Message-ID: <OFA1DA680E.A900E7ED-ON85256A37.0056F992@hartehanks.com>
Permalink:  ../OFA1DA680E.A900E7ED-ON85256A37.0056F992@hartehanks.com/
Also on:    postgresql.org/message-id/OFA1DA680E.A900E7ED-ON85256A37.0056F992@hartehanks.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: Timothy_Maguire@hartehanks.com, cm@chello.at
  Subject: Re: Splitting strings
  In-Reply-To: <OFA1DA680E.A900E7ED-ON85256A37.0056F992@hartehanks.com>
  References: <OFA1DA680E.A900E7ED-ON85256A37.0056F992@hartehanks.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox