Re: Splitting strings

Поиск
Список
Период
Сортировка
От Roberto Mello
Тема Re: Splitting strings
Дата
Msg-id 20010423100449.A15308@cc.usu.edu
обсуждение исходный текст
Ответ на Splitting strings  ("Christian Marschalek" <cm@chello.at>)
Список pgsql-php
On Mon, Apr 23, 2001 at 05:53:08PM +0200, Christian Marschalek wrote:
> How would you split a string which is seperated by * with PHP?
>
> Like "abc*def*ghi" into "abc","def","ghi"?

    $origString = "abc*def*ghi";
    $tokens = explode("*",$origString);

    $token[0] ---> abc
    $token[1] ---> def
    ...

    -Roberto
--
+----| http://fslc.usu.edu USU Free Software & GNU/Linux Club |------+
  Roberto Mello - Computer Science, USU - http://www.brasileiro.net
       http://www.sdl.usu.edu - Space Dynamics Lab, Developer
Sir -- My first job was programming binary load lifter.

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
    (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)




В списке pgsql-php по дате отправления:

Предыдущее
От: Martín Marqués
Дата:
Сообщение: Re: SELECT column name
Следующее
От: "Christian Marschalek"
Дата:
Сообщение: RE: Sessions without cookies