note 95621 deleted from function.settype by danbrown

From: Date: Wed, 13 Jan 2010 01:53:18 +0000
Subject: note 95621 deleted from function.settype by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-164896@lists.php.net to get a copy of this message
Note Submitter: jamon at clearsightdesign dot com ---- In response to NWdev below: use array_filter() instead of array_walk(). <?php function make_int($var) { return (int)$var; // my preferred way to do it } $new_array = array_filter($old_array, "make_int"); ?>

« previous php.notes (#164896) next »