does function extract() trim?

This is a discussion on does function extract() trim? within the PHP General forums, part of the PHP Programming Forums category; do not laugh, but I "discovered" today function extract(); :D before I used: foreach ($array as $key => $...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-28-2008
Lamp Lists
 
Posts: n/a
Default does function extract() trim?

do not laugh, but I "discovered" today function
extract(); :D

before I used:
foreach ($array as $key => $value)
{
${$key} = trim($value);
}

though, "trimming" $value is kind of important to me
and I would like to know if extract "trims" too?

thanks.

-ll


__________________________________________________ __________________________________
Never miss a thing. Make Yahoo your home page.
http://www.yahoo.com/r/hs

Reply With Quote
  #2 (permalink)  
Old 03-28-2008
Stut
 
Posts: n/a
Default Re: [PHP] does function extract() trim?

On 28 Mar 2008, at 20:59, Lamp Lists wrote:
> do not laugh, but I "discovered" today function
> extract(); :D
>
> before I used:
> foreach ($array as $key => $value)
> {
> ${$key} = trim($value);
> }
>
> though, "trimming" $value is kind of important to me
> and I would like to know if extract "trims" too?


No, but you can use http://php.net/array_map to do the trim before
using extract.

-Stut

--
http://stut.net/
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:53 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0