foreach loop

From: Date: Sat, 07 Jul 2001 17:31:33 +0000
Subject: foreach loop
Groups: php.general 
Request: Send a blank email to php-general+get-56646@lists.php.net to get a copy of this message
When I go through a foreach loop, are the values of the individual items in the array changed? For instance: $variables = array($author_firstname, $author_lastname, $author_dob, $author_dod, $author_bio); foreach($variables as $value) {
        $value = strip_tags($value);
        $value = AddSlashes($value);
} will the values be changed outside of the loop? John Meyer john_meyer@geocities.com Programmer If we didn't have Microsoft, we'd have to blame ourselves for all of our programs crashing

« previous php.general (#56646) next »