| From: | Roberto Mello <rmello(at)cc(dot)usu(dot)edu> |
|---|---|
| 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 16:04:49 |
| Message-ID: | 20010423100449.A15308@cc.usu.edu |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Dan Wilson | 2001-04-23 16:06:07 | Re: Splitting strings |
| Previous Message | Christian Marschalek | 2001-04-23 15:53:08 | Splitting strings |