Re: Splitting strings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



try

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

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




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

Sent by:  pgsql-php-owner@xxxxxxxxxxxxxx


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




---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://www.postgresql.org/search.mpl





[Index of Archives]     [Postgresql General]     [Postgresql Admin]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Backpacking]     [Postgresql Jobs]

  Powered by Linux