Re: removing appended chars - please help, quite urgent
| From: | Ernest E Vogelsinger | Date: | Thu, 13 Mar 2003 09:03:32 +0000 |
| Subject: | Re: removing appended chars - please help, quite urgent | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-139462@lists.php.net to get a copy of this message | ||
At 09:59 13.03.2003, Adriaan Nel said:
--------------------[snip]--------------------
>I need to update records in a mysql dbase, from a .csv file, everything
>works fine, but the index column, $npr_nr from below sometimes has a space
>at the end, this causes the dbase index not to match this one, therefore
>this record isn't updated. Do any1 know how I can check for spaces here,
>and remove them if present????
--------------------[snip]--------------------
have a look at trim()
--
>O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/